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

Macro parameter names with camel case style end up in lowercase in parameter descriptor map

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Environment:
      any
    • keywords:
      macro parameter descriptor camel case lowercase
    • Similar issues:

      Description

      It seems that macro parameter names are case sensitive. Take for instance the cssClass parameter of the box macro:

      {{box cssClass="foo"}}bar{{/box}}
      
      {{box cssclass="foo"}}bar{{/box}}
      

      The CSS class is applied only in the first case, when the parameter name has camel case style. The problem is that the key to the parameter descriptor in the parameter descriptor map is in lowercase, although the name field of the parameter descriptor is in camel case.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: