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

Livetable parameters cannot be recovered with URI encoding

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Livetable uses the fragment/hash of the URL to store the filtering (and sorting) configuration since XWIKI-4921. The implementation assumes that | is left untouched in the fragment. Unfortunately, there are URL parser implementations (like Java's URI) that insist on encoding | as %7C. The same happens under Linux when using xdg-open to open a URL. This is due to differences between the original URI/URL specification and the WHATWG URL standard that is implemented by browsers.

      Livetable should recover the configuration even after | has been replaced by %7C. This is possible because Livetable configurations always start with |t=, which doesn't occur anywhere else inside the configuration as then = would have been encoded, too. It is thus possible to fix the hash of the location by replacing %7Ct= by |t= before the configuration is parsed.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: