Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-166

IconTransformation works improperly cross Syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Rendering in the platform
    • Fix Version/s: None
    • Component/s: Transformation
    • Labels:
    • Similar issues:

      Description

      In class IconTransformation, I detected that it always use

      @Requirement("plain/1.0")
      private Parser plainTextParser;
      

      to parse a given configuration source into an XDOM which is used to map with the input XDOM later. It means we always compare a static one with a dynamic one(based on its syntax: XWiki, Confluence, TWiki,...).
      So my proposal is to look up the parser dynamically by rendering context.(Patch for 2.7.1 is attached to explain further)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            hieu.lai Hieu Lai Trung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: