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

Finder in documentTree doesn't work when there is a space character in the root parameter page path

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Create the following page structure: "my page/test/"
      2. Add this content to the page "my page.WebHome":
        {{velocity}}
        {{documentTree root="document:$doc.documentReference" finder="true"/}}
        {{/velocity}}
        
      3. Search for the test page inside the Document tree finder
      4. Rename the page "my page.WebHome" to "my-page.WebHome"
      5. Search again for the test page inside the Document tree finder

      Expected results: I am able to find the children page in both cases.

      Actual results: I can only find the test page at step 5 but not on step 3.

      Working query (my-page):

      http://localhost:8080/xwiki/bin/get/my-page/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&root=document%3Axwiki%3Amy-page.WebHome&root=document%3Axwiki%3Amy-page.WebHome&data=suggestions&query=test
      

      Query with 0 results (my page):

      http://localhost:8080/xwiki/bin/get/my%20page/WebHome?outputSyntax=plain&sheet=XWiki.DocumentTree&root=document%3Axwiki%3Amy%20page.WebHome&root=document%3Axwiki%3Amy%20page.WebHome&data=suggestions&query=test
      

      Attachments

        Activity

          People

            enygma Eduard Moraru
            msmeria Manuel Smeria
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: