Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-76950

Dot "." at the end of a variable name causes an error code when creating a page based on that template

    XMLWordPrintable

Details

    Description

      Issue Summary

      If a variable in a user-created template has a dot "." at the end of its name, when creating a new page based on this template, it will stay blank and return an error code at the bottom of the page upon clicking on the selected template.

      Steps to Reproduce

      1. Create a user template at Confluence Settings > Global Templates
      2. Add a variable
      3. Edit the variable and add a variable name with the dot at the end. For example: variable.
      4. Save Template
      5. Hit Create page
      6. Search for the template name and click on it

      Expected Results

      The page will be created as expected with the template options

      Actual Results

      Page stays blank and thrown an error code.

      This is what we see on the dev tools inside a /cgraphql?q=MacroBodyRendererQueryWithTagsRequest 200

      {
          "errors": [
              {
                  "message": "a0ce0ab6-3b1a-416d-a631-31129a79976d: com.atlassian.confluence.api.service.exceptions.NotFoundException: Cannot find content with selector ContentSelector{id=ContentId{id=187105325}, status=current, version=0}",
                  "path": [
                      "macroBodyRenderer"
                  ],
                  "extensions": {
                      "microsID": "a0ce0ab6-3b1a-416d-a631-31129a79976d",
                      "data": {
                          "authorized": true,
                          "valid": true,
                          "errors": [],
                          "successful": true
                      },
                      "statusCode": 404,
                      "classification": "DataFetchingException"
                  }
              }
          ],
          "data": {
              "macroBodyRenderer": null
          }
      }  

      Workaround

      Remove the dot at the end of the variable(s) name(s).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhonda@atlassian.com Jessica
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: