-
Bug
-
Resolution: Fixed
-
Low
-
6.6.13, 6.13.4, 6.15.4
-
10
-
Severity 2 - Major
-
18
-
Issue Summary
When Collaborative Editing is enabled in Confluence and users try to edit a page, they might hit a bug on which a blank page is shown in the editor.
Sometimes, it is not a blank page, but an old version of it.
Environment
This bug was reproduced on 6.6, 6.13 and 6.15.4.
Although not tested, this should affected any version from 6.0 onward.
Steps to Reproduce
Below are described two ways to hit this bug, but with different characteristics to user, although the bug trigger is the same.
Because of simplicity, the first option might be more common than the other, which is when the user sees a blank page when accessing the editor.
Option 1
- Install a vanilla instance of Confluence.
- Publish a new page with no content.
- Disable Collaborative Editing.
- Edit the same page, add new content to it and save it.
- If you check records related to this page in the CONTENT table, you have 3 rows.
- Enable Collaborative Editing.
- The draft record that was created a few steps ago won't be removed as a stale draft because its timestamps are null.
- Access the same page as before and click on Edit.
Expected Results
Confluence shows in the editor the contents of the last published page.
Actual Results
Confluence shows in the editor a blank page.
Option 2
- Install a vanilla instance of Confluence.
- Disable Collaborative Editing.
- Create a page with a sample content.
- Enable Collaborative Editing.
- Access the page created a few steps before and click on Edit.
- Without changing anything on the contents, click on Close to exit the editor.
- Disable Collaborative Editing.
- Edit the same page again, add new content to it and save it.
- Enable Collaborative Editing.
- The draft record that was created a few steps ago won't be removed as a stale draft because its timestamps are null.
- Access the same page as before and click on Edit.
Expected Results
Confluence shows in the editor the contents of the last published page.
Actual Results
Confluence shows in the editor an old version of the page, which is related to the draft record created when Collaborative Editing was first enabled.
Notes
This bug is related to CONFSERVER-57458 in a way that it shows the same characteristics to the end user.
A bug new record was created because the trigger of is completely different.
Workaround
- First, let's execute the following SQL query to identify how many affected pages are there with NULL creationdate and lastmoddate.
SELECT count(1) FROM CONTENT d JOIN CONTENT c ON d.prevver = c.contentid WHERE d.content_status = 'draft' AND d.prevver IS NOT NULL AND (c.lastmoddate is not null and d.lastmoddate is null);
- Then, please navigate to the <Confluence-Base-URL>/admin/do-force-upgrade.action page.
- Next, set the drop-down to nullModificationDateDraftUpgradeTask and click on the Force Upgrade button.
- Lastly, please run the query that we ran on Step no. 1 again to check how many affected pages are left in the Confluence DB - we're expecting 0 result to be returned here.
- is blocked by
-
CONFSERVER-65304 Trying to retrieve content for trashed pages return 500 errors using api because of Create date is null
- Gathering Impact
- is related to
-
CONFSERVER-57458 Editing a page with Collaborative Editing enabled might show an older version of that page
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...