-
Task
-
Resolution: Duplicate
-
Neutral
-
None
-
5.5
-
-
Empty show more show less
-
Empty show more show less
With MAGNOLIA-6686, we now prevent re-wrapping current context within system context, if it is already a system context.
While doing so, we added some warnings to show where we actually run into this. This has become pretty verbose already, as shown on the bundle builds for example.
Now we need to look at such warnings and assess if we can remove redundant wrappings in sys-ctx, or if the warning is too harsh.
Below is a trace example provided by oanh.thai, just when assigning a task to herself in the pulse—in this particular case, it points to the GroupManager, but we should question if the extra wrapping comes from here or from the UI, i.e. rather keep the system-context encapsulation on the lower level components (which might be consumed from different ends), and get rid of the UI one.
2016-08-01 18:39:05,839 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator$ChangeLastUpdateDateOp:info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator$ChangeLastUpdateDateOp@387a784d in system context while already in system context. (...) [16 more invocations via content-decorators ops] 2016-08-01 18:39:05,848 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator$ChangeLastUpdateDateOp:info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator$ChangeLastUpdateDateOp@26a4d9d6 in system context while already in system context. 2016-08-01 18:39:05,862 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.cms.security.MgnlGroupManager$4:get direct sub groups publishers in system context while already in system context. 2016-08-01 18:39:05,863 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.cms.security.MgnlGroupManager$4:get direct sub groups demo-project-publishers in system context while already in system context. 2016-08-01 18:39:05,865 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.cms.security.MgnlGroupManager$4:get direct sub groups publishers in system context while already in system context. 2016-08-01 18:39:05,865 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.cms.security.MgnlGroupManager$4:get direct sub groups demo-project-publishers in system context while already in system context. 2016-08-01 18:39:05,868 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.cms.security.MgnlGroupManager$4:get direct sub groups publishers in system context while already in system context. 2016-08-01 18:39:05,868 WARN info.magnolia.context.MgnlContext : Requested to run info.magnolia.cms.security.MgnlGroupManager$4:get direct sub groups demo-project-publishers in system context while already in system context.
- caused by
-
MAGNOLIA-6686 System context operations hide the real user who triggered them
- Closed
- duplicates
-
MAGNOLIA-6731 Some operations are requested to run in system context while already in system context
- Accepted
-
MAGNOLIA-6798 Reduce log level from warn to debug until MAGNOLIA-6731 resolved
- Closed