-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.6.0-HF09, 5.7.1
-
Component/s: Core
-
Tags:
In the TransactionalCoreSessionWrapper, the following code is wrong at least when the transaction status is STATUS_ROLLEDBACK, in which case the synchronisation should not be registered.
main = TransactionHelper.lookupTransactionManager().getTransaction(); if (main != null) { if (main.getStatus() != Status.STATUS_MARKED_ROLLBACK) { main.registerSynchronization(this); session.afterBegin(); threadBound.set(main); } }
The test should probably be the following:
if (main.getStatus() == Status.STATUS_ACTIVE) {
...
}
- is required by
-
NXP-10489 Use NuxeoDrive specific operations for AttachBlob, DownloadBlob, UpdateProperties, ...
- Resolved