Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18064

Page picker does not correctly escape special characters like "~" aka "tilde"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 12.5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Unfortunately I named a page "~xwiki" where I would have liked to point a ClassSheetBinding to a child of the aforementioned page.

      Since one cannot specify the path but only select from the AJAX suggestions while typing, there is no easy way to remedy the problem caused by this.

      I noticed that at some places in xWiki the "tilde" character "" needs to be prefixed / escaped with a tilde to make it work, e.g "" becomes "~~". The Include Macro does this automatically, btw.

      That said, since the mandatory use of a suggestion in the object editor for a page, the value stored to the database is "~xwiki/path/to/page", which is then interpreted as "xwiki/path/to/page" by xWiki. This will lead in this case to the problem that the class Sheet does not work.

      As a workaround I did manually update the database, which is viable, but not very nice.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bbu@netsuccess.ch Beat Burgener
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: