Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7026

mgnl:lastModifiedBy is always superuser upon versioning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.5
    • 5.5
    • None
    • None
    • Saigon 96
    • 5

    Description

      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

      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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                oanh.thai Oanh Thai Hoang
                oanh.thai Oanh Thai Hoang
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - 3d
                      3d
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 2d 5h Time Not Required
                      2d 5h