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

Rendering a macro in a template uses incomplete rendering context

    XMLWordPrintable

Details

    Description

      Issue Summary

      When implementing StreamableMacro#executeToStream(Map<String,String> parameters, Streamable body, ConversionContext context) for a macro that is called from a template the ConversionContext isn't fully populated.

      Reference

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a P2 plugin with a macro
      2. Implement StreamableMacro
      3. Open a template and use the macro

      Expected Results

      The values in ConversionContext are provided, e.g. space, etc.

      Actual Results

      ConversionContext lacks a lot of expected data.

      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
              jrichards@atlassian.com James Richards
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: