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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 8.4.5, 10.2
    • XClass
    • Unknown

    Description

      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
        /xwiki/bin/view/Sandbox/Test?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.

       

      Attachments

        1. bug.png
          24 kB
          Mohamed Boussaa
        2. notReproducing845.png
          27 kB
          Alex Cotiugă

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: