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

Unable to Preview Global page templates if the user does not belong to confluence-administrators group

XMLWordPrintable

      Issue Summary

      When a user with administrator privileges (granted individually or via a group other than confluence-administrators) tries to load the Preview of a Global page template, the template keeps loading indefinitely. 

      Do note that this bug also reproduces if the users are synchronised into Confluence via an external User Directory. 

      Steps to Reproduce

      1. Login with a user who belongs to "confluence-administrators" group
      2. Go to Confluence Admin > Global Templates and Blueprints
      3. Click Add global page template
      4. Add any content to this page; and click Preview to confirm it works OK. 
      5. Now, create a new user in Confluence
      6. Browse to Global Permissions and grant administrator privileges (identical to the ones of "confluence-administrators" group) to this user.
        • You can grant these privileges to the user individually or by adding him to a group that also has them. 
      7. Login as the new user, and browse to Global Templates and Blueprints
      8. Edit the template created previously and click on Preview

      Expected Results

      The preview of the global page template is loaded.

      Actual Results

      The preview keeps spinning and the user is stuck on the edit mode. The Preview, Save and Cancel buttons are grayed out

      Monitoring the request with your browser DevTools, you can see that the endpoint called /confluence/pages/rendercontent.action, returns the following content as a Response:

      <html>
      <head>
          <title>Not Permitted</title>
          <meta name="decorator" content="atl.general">
          
      </head>
      <body>
              
      
      
      <content tag="breadcrumbs">
          <nav aria-label="Breadcrumbs">
              <ol id="breadcrumbs">
                  <li class="first" >
                                          <span class=""><a href="/confluence/admin/console.action">Administration</a></span>
                  <li>
                                          <span class=""><a href="/confluence/admin/users/browseusers.action">Users</a></span>
                                                                                                          </ol>
          </nav>
      </content>
          <div id="content" class="access-error-container not-permitted-background-image">
              <div class="access-error">
                  <h2>Not Permitted</h2>
                  <p>You are not permitted to perform this operation.</p>
              </div>
          </div>
      </body>
      </html>
      

      Workaround

      As of now, the workaround for users to be able to preview the Global page template is to add the user into the default confluence-administrators group.

      However, if you go for this workaround, please take into consideration about the difference of the permission between granting Confluence Admin and the being in the default group:

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 9.2.6 Yes
      Most Recent Bug-Fix Release 9.5.2 Yes
      Previous Major Release    
      Most Recent LTS 9.2.6 Yes
      Previous Supported LTS 8.5.24 Yes
      Other Versions..    
      (Add rows as needed)    

              qpham@atlassian.com Quan Pham
              d8a006ac9dc7 Iker Alonso (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: