-
Bug
-
Resolution: Cannot Reproduce
-
Low
-
7.7.4, 7.8.1
-
4
-
Severity 3 - Minor
-
35
-
Issue Summary
If we upload 3 images 1 by one to the newly created draft, the publishing will be broken, and we will see an error message in the UI.
The issue will manifest with templates, pages, and blog posts.
"Can't sync with the server.
Refresh the page to try to re-establish the connection."
Steps to Reproduce
- Create a new page
- Add a title to it.
- Add 3 images one by one by drag and drop.
- After the second image title will be removed.
- Try to publish the page
Expected Results
The page will be published.
Actual Results
The page is not published, and we get an error in UI.
"Can't sync with the server.
Refresh the page to try to re-establish the connection."
In the har file we see:
Request URL: http://localhost:6781/c781/rest/api/content/786442?status=draft Request Method: PUT Status Code: 409 Remote Address: [::1]:6781 Referrer Policy: strict-origin-when-cross-origin {statusCode: 409,…} data: {authorized: false, valid: true, allowedInReadOnlyMode: true, errors: [], successful: false} allowedInReadOnlyMode: true authorized: false errors: [] successful: false valid: true message: "Draft versioning is not supported. Current version is : 1" reason: "Conflict" statusCode: 409
The below exception is thrown in the Atlassian-confluence.log file:
2021-03-12 11:28:44,159 INFO [http-nio-6781-exec-3] [plugins.synchrony.service.SynchronyExternalChangesManager] performExternalChange Started external change for ContentId{id=786442} 2021-03-12 11:28:44,162 INFO [http-nio-6781-exec-3] [synchrony.service.http.SynchronyRequestExecutor] execute Initiating request PUT http://127.0.0.1:5781/synchrony/v1/data/Synchrony-11bbfcae-7d43-38d8-aace-d16466ed4c25/confluence-786442?state-at=@head&state-format=html HTTP/1.1 for 786442 2021-03-12 11:28:44,367 WARN [http-nio-6781-exec-6] [persistence.dao.filesystem.HierarchicalContentFileSystemHelper] createDirectoryHierarchy Failed to create directory at /Users/gpaunovic/confluence-home/atlassian-confluence-7.8.1/imgEffects/193/36/786443 -- referer: http://localhost:6781/c781/pages/createpage.action?spaceKey=781 | url: /c781/download/attachments/786442/1608832786165647.JPG | traceId: e2b84b5da9f548f2 | userName: admin 2021-03-12 11:28:50,565 INFO [http-nio-6781-exec-2] [plugins.synchrony.service.SynchronyExternalChangesManager] performExternalChange Started external change for ContentId{id=786442} 2021-03-12 11:28:50,568 INFO [http-nio-6781-exec-2] [synchrony.service.http.SynchronyRequestExecutor] execute Initiating request PUT http://127.0.0.1:5781/synchrony/v1/data/Synchrony-11bbfcae-7d43-38d8-aace-d16466ed4c25/confluence-786442?state-at=@head&state-format=html HTTP/1.1 for 786442 2021-03-12 11:28:57,189 INFO [http-nio-6781-exec-7] [plugins.synchrony.service.SynchronyExternalChangesManager] performExternalChange Started external change for ContentId{id=786442} 2021-03-12 11:28:57,201 INFO [http-nio-6781-exec-7] [synchrony.service.http.SynchronyRequestExecutor] execute Initiating request PUT http://127.0.0.1:5781/synchrony/v1/data/Synchrony-11bbfcae-7d43-38d8-aace-d16466ed4c25/confluence-786442?state-at=@head&state-format=html HTTP/1.1 for 786442 2021-03-12 11:29:06,417 WARN [http-nio-6781-exec-6] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions: ->[com.atlassian.confluence.api.impl.service.content.draft.ContentDraftServiceImpl.publishEditDraft]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #687731820) [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #582304549) -- referer: http://localhost:6781/c781/pages/resumedraft.action?draftId=786442&draftShareId=0129c27c-17aa-4726-ad55-8c56e164ca8b& | url: /c781/rest/api/content/786442 | traceId: 2ed9689878d29649 | userName: admin 2021-03-12 11:29:07,447 WARN [http-nio-6781-exec-9] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions: ->[com.atlassian.confluence.api.impl.service.content.draft.ContentDraftServiceImpl.publishEditDraft]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #836214065) [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1773519869) -- referer: http://localhost:6781/c781/pages/resumedraft.action?draftId=786442&draftShareId=0129c27c-17aa-4726-ad55-8c56e164ca8b& | url: /c781/rest/api/content/786442 | traceId: 60cb2c2e0bad2612 | userName: admin 2021-03-12 11:29:08,475 WARN [http-nio-6781-exec-1] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions: ->[com.atlassian.confluence.api.impl.service.content.draft.ContentDraftServiceImpl.publishEditDraft]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1677493447) [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1600203221) -- referer: http://localhost:6781/c781/pages/resumedraft.action?draftId=786442&draftShareId=0129c27c-17aa-4726-ad55-8c56e164ca8b& | url: /c781/rest/api/content/786442 | traceId: eff9b7cf742a6cf8 | userName: admin 2021-03-12 11:29:09,505 WARN [http-nio-6781-exec-6] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions: ->[com.atlassian.confluence.api.impl.service.content.draft.ContentDraftServiceImpl.publishEditDraft]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1631128891) [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #2121442977) -- referer: http://localhost:6781/c781/pages/resumedraft.action?draftId=786442&draftShareId=0129c27c-17aa-4726-ad55-8c56e164ca8b& | url: /c781/rest/api/content/786442 | traceId: 2634270ac00d0bf9 | userName: admin
Workaround
The current workaround is to refresh the page, and then publish it, or to create (publish) a page before adding images.
At the moment the issue is not affecting LTS 7.4.x and the latest 7.11.x
The issue is not visible without Collaborative editing.
A fix for this issue is available to Server and Data Center customers in Confluence 7.4.15
Upgrade now or check out the Release Notes to see what other issues are resolved.