[MAGNOLIA-6731] Some operations are requested to run in system context while already in system context Created: 28/Jul/16  Updated: 18/May/17

Status: Accepted
Project: Magnolia
Component/s: core, integration tests
Affects Version/s: 5.5
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 3.5d
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MAGNOLIA-6798 Reduce log level from warn to debug u... Closed
causality
caused by MAGNOLIA-6686 System context operations hide the re... Closed
duplicate
is duplicated by MAGNOLIA-6734 Assess and clean up redundant system ... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Story Points: 5

 Description   

While running integration tests, there is a lot of these kind of statements:

[INFO] [talledLocalContainer] 2016-07-28 09:14:30,207 WARN  info.magnolia.context.MgnlContext                 : Requested to run info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator$ChangeLastUpdateDateOp:info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator$ChangeLastUpdateDateOp@63087c12 in system context while already in system context.

Find the causes and fix.

Revert MAGNOLIA-6798 after resolving.



 Comments   
Comment by Mikaël Geljić [ 05/Aug/16 ]

Also see duplicate ticket. Basically drawing attention where to fix it:

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 we would then get rid of the consumer/UI one.

Comment by Evzen Fochr [ 05/Aug/16 ]

mgeljic same thing happens while installing magnolia, so we need to change it in RoleManager, GroupManager, UserManage etc.

Comment by Evzen Fochr [ 05/Aug/16 ]

other than core modules/classes:
info.magnolia.multisite.setup.for4_5_4.UpdateURIPermissionsTask
info.magnolia.task.persistence.TasksStoreImpl
info.magnolia.module.workflow.jbpm.persistence.SystemContextSessionStore

Generated at Mon Feb 12 04:17:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.