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

Empty value displayed by a DBList with display type input with suggest, if the value has some special characters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 9.8-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      To reproduce:

      • create a DBList property in a class, "propName" in a class X
      • use a query like this:
        select obj.name, doc.title from XWikiDocument as doc, BaseObject as obj
        

        (note that we use the join with object only to overcome XWIKI-8758 )

      • set the display type to input, check the box "use suggest"
      • add a document in the wiki that contains a ' in the name (single apostrophe), add an object in this document (so that is found by the query of the suggest property). Say the name is "John's Document". Make sure the title of the document is not empty
      • create a documnent with an object of type X
      • edit the document, set "John's document as the value of the propName property, save.
      • re-edit the document, the input displayed for propName will not have any value, will be empty, when it should actually display the title of "John's Document" document.
      • in view mode though, if propName is displayed, the value is properly filled.

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              lucaa Anca Luca
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: