Template variable names with special characters and spaces during creation of space template does not work on pages

XMLWordPrintable

    • 18
    • Severity 3 - Minor
    • 30

      Issue Summary

      This is reproducible on Data Center: (yes)

      Custom template variables having special characters and spaces in there names with text and multi-line text fields are not displayed correctly when same template is used to create a page.

      Update: The issue is reproducible not only for variable name but also list variable content.

      Steps to Reproduce

      1. Create a Space and choose Space tools > Content Tools from the bottom of the sidebar.
      2. Choose Templates > Create new template > Demo Template
      3. From the editor toolbar, select   then choose New Variable with name first_name (by default this will create a single-line text input field).
      4. Add few more variables with names as "last-name" (single-line text input) , "enter Address" (Multi-line text input), "phoneNumber" (single-line text input).
      5. Click on ... to create page and choose "Demo Template" from the list.

      Expected Results

      The template variables must be rendered correctly on the page as seen in the attached screenshot (expected_outcome.png)

      Actual Results

      The template variables are not working or rendered correctly on the page as seen in the attached screenshot (actual_outcome.png) but template preview (template_preview.png) works fine.

      Workaround

      • Avoid using special characters (eg. _ , - , ? etc) and spaces within template variable names.
      • Or else upgrade to Confluence 7.20.0 where the issue is not observed. 

        1. actual_outcome.png
          actual_outcome.png
          882 kB
        2. expected_outcome.png
          expected_outcome.png
          240 kB
        3. template_preview.png
          template_preview.png
          1.09 MB

            Assignee:
            Unassigned
            Reporter:
            Saurabh
            Votes:
            32 Vote for this issue
            Watchers:
            36 Start watching this issue

              Created:
              Updated:
              Resolved: