-
Bug
-
Resolution: Fixed
-
Low
-
9.2.6, 8.5.24, 9.5.2
-
1
-
Severity 3 - Minor
-
7
-
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
- Login with a user who belongs to "confluence-administrators" group
- Go to Confluence Admin > Global Templates and Blueprints
- Click Add global page template
- Add any content to this page; and click Preview to confirm it works OK.
- Now, create a new user in Confluence
- 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.
- Login as the new user, and browse to Global Templates and Blueprints
- 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) |
- relates to
-
CONFSERVER-32679 Unable to Preview Global Blueprints or Templates
-
- Closed
-
-
CONFSERVER-26325 Unable to preview Global template with users that only has Confluence Administrator right only
-
- Closed
-
-
CONFSERVER-33027 Unable to Preview Global Template Without Confluence-Administrators Access
-
- Closed
-