Webwork velocity module cannot be used by user macros

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.19.8, 7.19.9, 7.19.10, 7.19.11, 7.19.12
    • Component/s: Macros - Other Macros
    • None
    • 4
    • Severity 3 - Minor
    • 0

      Issue Summary

      This is reproducible on Data Center: (yes)

      Starting at version 7.19.8, the webwork velocity module is not rendered when used in user macros, even if it's explicitly enabled in system properties. This change has not been documented in User Macro guides or Confluence objects accessible from Velocity.

      Steps to Reproduce

      1. Set the system properties below:
        -Dmacro.required.velocity.context.keys=webwork, htmlUtil
        
      2. Start Confluence
      3. Login as admin
      4. Define a new User Macro with the below template code:
        ## @noparams
        Space name with htmlencoding:</strong>
         $webwork.htmlEncode($space.name) 
        <br/>
        Space name with htmlencoding using htmlUtil:</strong>$htmlUtil.htmlEncode($space.name)
      5. Insert the macro in a page

      Expected Results

      Both the htmlUtil and webwork should render.

      Actual Results

      Only the htmlUtil renders.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            B Cavalcante (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: