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

XWiki.ClassSheet generates sheets which double escape the special characters in the document titles upon usage of the sheet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.2, 9.11.7
    • Fix Version/s: 10.7-rc-1, 9.11.8
    • Component/s: XClass
    • Labels:
      None
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      Description

      To reproduce:

      • create a class using XWiki.XWikiClasses
        • it will be created using XWiki.ClassSheet as sheet
      • Create the sheet for this class, using the button displayed by XWiki.ClassSheet, bind it to the class
      • Create a document with an instance of an object in it, with an ampersand in the title or two adjacent whitespaces

      Expected result:

      • The ampersand is rendered as an ampersand, the two adjacent whitespaces are rendered as such
        Actual result:
      • The ampersand is rendered as & while the whitespace is rendered as  

      This is because, in the title generated for the sheet by XWiki.ClassSheet, the title of the document that uses the sheet is displayed using services.display.title(...) which, probably quite legitimate, already renders the special characters as entities.

        Attachments

          Activity

            People

            • Assignee:
              atallahade Adel Atallah
              Reporter:
              lucaa Anca Luca
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

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