#2731 Unable to open a wiki page created with '/' character in the name [21480] - NEEDS SCRIPT

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-09-02
Chris Tsai
No

https://sourceforge.net/apps/trac/sourceforge/ticket/21480

I created a wiki page with the name 'Milestones'. I was able to access the page without any issues.

Then later modified the name to Milestones/Releases, and now whenever I try to access the access the page using the URL: https://sourceforge.net/p/delphinus/wiki/Milestones/Roadmap/ I get a 404 error.

Check out the link for 'Milestones/Roadmap' here:
https://sourceforge.net/p/delphinus/wiki/browse_pages/

So, two things here:
1) Can we help recover that page somehow?
2) We should not accept characters that are going to have problems as wiki page names.

Discussion

  • Mark Ramm - 2011-09-04
    • milestone: limbo --> forge-sept-30
     
  • Dave Brondsema

    Dave Brondsema - 2011-09-06

    This is the same as [#2632]

     
  • Dave Brondsema

    Dave Brondsema - 2011-09-19
    • size: --> 1
    • milestone: forge-sept-30 --> forge-oct-14
     
    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
    • milestone: forge-backlog --> forge-dec-16
     
    • summary: Unable to open a wiki page created with '/' character in the name [21480] --> Unable to open a wiki page created with '/' character in the name [21480] - NEEDS SCRIPT
    • status: in-progress --> code-review
    • qa: John Hoffmann ☠
     
  • forge:tv/2731

    QA: While on dev branch, go to Wiki, click Create Page. Type 'foo' as page title. On edit screen, change title to 'foo/bar'. Click save. You'll get a 404.

    Now switch to forge:tv/2731. Run:

    (env-allura)root@h7v7019:/var/local/allura/Allura(tv/2731)$ paster script production.ini ../scripts/migrations/020-remove-wiki-title-slashes.py 
    

    You should see that your 'foo/bar' page gets updated to 'foo-bar'.

    Go back to Wiki, click Create Page. Type 'alpha/omega' as page title. Should redirect to edit page with the title changed to 'alpha-omega'. Trying changing it back to a '/' in the title and click Save. It should get converted back to a '-'.

     
  • John Hoffman - 2011-12-12
    • status: code-review --> closed
     
  • John Hoffman - 2011-12-12

    Tested fine, merged to dev.

     

Log in to post a comment.