-
Bug
-
Resolution: Fixed
-
Major
-
5.5
-
None
-
None
-
-
Empty show more show less
-
Saigon 96
-
5
Problem: version creation always have mgnl:lastModifiedBy is superuser since 5.5
To reproduce it:
- Publish one item
- Check version of published item
- Go to JCRUtils to find that version content
- Observe: lastModifiedBy is always superuser
Source of problem: After I reverted partially code below in CopyUtil (#copyToVersion, #clone and #importNode function). It works well
- https://git.magnolia-cms.com/projects/PLATFORM/repos/main/pull-requests/279/diff#magnolia-core/src/main/java/info/magnolia/cms/core/version/CopyUtil.java line 114 and line 252
- Refactor code from https://git.magnolia-cms.com/projects/PLATFORM/repos/main/pull-requests/288/diff#magnolia-core/src/main/java/info/magnolia/cms/core/version/CopyUtil.java for #doImport
Using node.save() as different than node.getSession().save(). calling without getSession() won't delegate to WrapperSession so in 5.3 and 5.4 they keep the correct lastModifiedBy
Acceptance criteria
- is causing
-
MAGNOLIA-7242 CopyUtil saves incorrect session
- Closed
- is depended upon by
-
MGNLACTIVATION-152 mgnl:lastModifiedBy gets reset to anonymous upon publication
- Closed
- is related to
-
MAGNOLIA-6387 mgnl:lastModifiedBy property is set to the wrong user
- Open