- Blog
- 2022
- 06
- 21
Copy Tree Issue with Confluence
There is an issue, CONFSERVER-79048, that affects the projectdoc Toolbox when users copy a tree of pages having projectdoc documents.
Description
While the copy tree action completes, the projectdoc documents will no longer be valid and therefore cannot be found in queries.
In the logs, administrators will see the following stack trace.
2022-06-21 11:51:36,348 ERROR [Long running task: Copy page hierarchy long running task] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollbackOnCommitException Commit exception overridden by rollback exception
-- url: /confluence/rest/page-hierarchy/copy | referer: https://example.com/confluence/display/T/PT-1 | traceId: b93c9d49ec5a715c | userName: test
java.lang.IllegalStateException: Transaction not successfully started
at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:63)
2022-06-21 11:51:36,351 ERROR [Long running task: Copy page hierarchy long running task] [confluence.util.longrunning.ConfluenceAbstractLongRunningTask] run Long running task "Copy page hierarchy long running task" failed to run.
-- url: /confluence/rest/page-hierarchy/copy | referer: https://example.com/confluence/display/T/PT-1 | traceId: b93c9d49ec5a715c | userName: test
org.springframework.transaction.TransactionSystemException: Could not roll back Hibernate transaction; nested exception is net.sf.hibernate.TransactionException: Cannot rollback transaction in current status [COMMITTED]
at org.springframework.orm.hibernate.HibernateTransactionManager.doRollback(HibernateTransactionManager.java:535)
at com.atlassian.confluence.impl.hibernate.ConfluenceHibernateTransactionManager.doRollback(ConfluenceHibernateTransactionManager.java:81)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.doRollbackOnCommitException(AbstractPlatformTransactionManager.java:892)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:775)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:711)
Workaround
Administrators and users with refresh permissions may fix the issue with a refresh page tree on the root page of the tree that has been copied.
See Cache Refresh Actions for details.
Fixed Versions
According to CONFSERVER-79048 there is no issue up to Confluence version 7.16.4 and will be fixed in 7.18.2 and is already fixed (confirmed with the projectdoc Toolbox) in 7.17.5.
References
Evidence for the information is available by the following references.
- CONFSERVER-79048
- The ticket for Confluence Server and Data Center.
- Confluence Server & Data Center Download Archives
- This page lists all versions of Confluence Server and Data Center available for download.
- Cache Refresh Actions
- projectdoc documents are stored in caches for quick access. Users may want to clear one of these caches.
- Transaction issue with PageManager#deepCopyPage on 7.17.1
- Article on Atlassian Developer Community.