•  
      request #10190 Wiki pages with escapable characters misbehave
    Infos
    #10190
    Jerome Mueller (emorelleum)
    2017-04-27 08:44
    2017-04-27 01:11
    10459
    Details
    Wiki pages with escapable characters misbehave
    We have a tuleap server running tuleap v 9.2.99.35. When creating new wiki pages, if the wiki page title contains symbols such as a single or double quote character or a backslash, the page starts exhibiting all sorts of undesirable behavior such as:

    -Whenever the page title is rendered (such as hitting the preview button), tuleap adds escape slashes '\' to the front of each escapable character.
    -The above breaks all links to the page within the page html since there are a bunch of \s to the page title
    -When trying to delete the page, tuleap comes back with an error saying the page is not in the database (I am an admin for this wiki), but the page is still listed under pages even after logging out and back in/waiting a while.
    -When viewing the wiki-pages list, several other pages are missing, and there is an error message for users at the bottom of the list saying "Wiki page is not unique. Please contact an administrator"

    The above symptoms were seen with google chrome and with microsoft edge.

    The problem isn't that bad since we can avoid putting these types of characters in titles, but we are looking for a workaround to delete the corrupt pages so the page listing will work.

    Thank you for your help!
    Doc/Wiki
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Acknowledged
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2017-04-27 08:44
    Hello,

    Thanks for the report, I'm going to take a look at this. I'm guessing some old "compatibility" functions are still around in PHPWiki causing the issue.

    • Status changed from New to Acknowledged