Hide Forgot
Description of problem: Platform BZ for https://issues.jboss.org/browse/GTNPORTAL-3257 Steps to Reproduce: 1. Call REST MOP Import (e.g. curl command in GTNPORTAL-3257) 2. Throw an Exception on JCR commit (e.g. using Byteman) Actual results: Transaction is rolled back. But REST response is 200 OK. Expected results: Transaction is rolled back. REST response is 500 (or something appropriate?).
Created attachment 793543 [details] throwExOnExoCommit.rule
Attached throwExOnExoCommit.rule which I tested with JPP 6.0.0
Created attachment 823245 [details] throwExOnExoCommit-fix.rule
Looks like fixed in JCR 1.16.x Would require backport to 1.15.x
Nicolas Filotto <nfilotto> made a comment on jira GTNPORTAL-3257 This issue cannot be fixed as expected so we will simply add an error message in the log file instead. Please refer to https://jira.exoplatform.org/browse/WS-284 and https://jira.exoplatform.org/browse/WS-285 for more details
Nick Scavelli <nscavell> made a comment on jira GTNPORTAL-3257 Adding a call to ChromatticManager.endRequest during the import should help bring any issues that may surface when the REST container ends the RequestLifecyle. This issue depends on https://jira.exoplatform.org/browse/WS-285 which reverts the commit of https://jira.exoplatform.org/browse/WS-284.
I reproduced the issue on DR01 and verified the fix with DR02, using throwExOnExoCommit-fix.rule. On DR02 I got: HTTP/1.1 500 Internal Server Error ... { "failure": "Error during import. Tasks successfully rolled back. Portal should be back to consistent state.", "operationName": "import-resource" }
Hey Bolek As this issue has two customer cases attached to it, we should probably have a Known Issue written up for it. Please reassign to anyone else if they can better create the release note. Cheers J
Adding doc text proposal