-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 6.15.6, 7.4.0
-
Component/s: Content - Page
-
None
-
5
-
Severity 2 - Major
-
1
Issue Summary
When using the restoretrashitem.action to restore a page, Confluence prompts a not permitted notification to user when an external LDAP is in play.
Steps to Reproduce
- Installed Confluence v6.15
- Connected to Apache DS (any LDAP server will do)
- Created a (same) username with space in it and synced it to Confluence

- This user's personal space has a white space,
select spacename, lowerspacekey, spacetype from spaces where spacename like '%Pat%';
spacename lowerspacekey spacetype ----------- ------------- --------- Pat Doe ~Pat Doe personal
- Created a page in personal space
- Deleted it
- Upon restore, got the same error!

- The issue didn't happen with other spaces
- Also, I renamed the user to without space,
- The issue still happened - because Space key is still the same. This also narrows down the cause to white space in Space Key
Expected Results
Page restored from trash.
Actual Results
Confluence prompts notification:
Not permitted
Workaround
We can use the REST API to restore the page.
- Get the contentid for the deleted page.
- We can get this from URL when attempting to restore the deleted page from trash
http://localhost:8090/pages/restoretrashitem.action?key=~admin&contentId=917510
- We need to find the version number for the body.
- We can run this query against the database:
select * from content where contentid=917510;
We need to use the version column.
- Run this REST API:
PUT http://localhost:8090/rest/api/content/917510 BODY { "version": {"number":2 }, "status": "current" }
- mentioned in
-
Page Loading...