[CST-5251] Improved missing builder's cleanup

This commit is contained in:
Luca Giamminonni
2022-02-11 16:34:02 +01:00
parent 35179b535e
commit 56896c3bb6
3 changed files with 3 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ public class RequestItemBuilder
throws Exception {
LOG.debug("cleanup()");
try ( Context ctx = new Context(); ) {
ctx.setDispatcher("noindex");
ctx.turnOffAuthorisationSystem();
requestItem = ctx.reloadEntity(requestItem);
if (null != requestItem) {