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

Database List property does not return the complete name of a page when the page contains a space at the end of its name


    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8.4.5, 10.2
    • Fix Version/s: None
    • Component/s: XClass
    • Labels:
    • Difficulty:
    • Similar issues:


      XWiki version: 8.4.5

      To reproduce:

      1. Create an xwiki class XWiki.TestClass with a Database list property named 'list' with these options:
      • Multiple Select: true
      • Related storage: true
      • XWiki Class Name: Blog.BlogPostClass
      • Id Field Name: doc.fullName
      • Value Field Name: title
      1. Go to the Blog application and create a new blog post with the name : 'Blog.New post ' (with a space at the end of the post name)
      2. Create a new page Sandbox.TestDBList, attach an object of class XWiki.TestClass to it and save.
      3. Edit the Sandbox.TestDBList page again with object editor and on the Database List property of the XWiki.TestClass object select the post 'New Post ' created above.
      4. Save the Sandbox.TestDBList page
      5. Open the Sanbox.TestDBList page with the query string xpage=xml
      6. Observe the value of the DB List property

      Expected result: on the returned xml the value of the DB list property contains 'Blog.New post ' (with a space at the end of the page name)

      Actual result: The value of the DB list property contains 'Blog.New post' without the space at the end of the page name, which is incorrect. It seems that the pages names are cleaned, see the screenshot bellow.





            • Assignee:
              tmortagne Thomas Mortagne
              mouhb Mohamed Boussaa
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created:
                Date of First Response: