Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-90583

Webwork velocity module cannot be used by user macros

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.19.8, 7.19.9, 7.19.10, 7.19.11, 7.19.12
    • Macros - Other Macros
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6444c12a624d Barbara Cavalcante
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: