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

DefaultHTMLDisplayer#getTemplate shouldn't create path with special characters

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.2-rc-1, 10.11.4
    • Component/s: Display
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Current implementation of getTemplate might lead to create path with characters not supported by the filesystem. The definition of the method says it can create path such as html_displayer/[type]/[mode].vm. But a type can be something like List<String>, and < character is not supported in Windows filesystem.

      We should not allow getTemplate to create such path and replace automatically those unsupported characters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surli Simon Urli
                Reporter:
                surli Simon Urli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: