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

Fix Possible NPE and InvalidItemStateException in LastUpdatePropertyWrapper and MgnlAuditLoggingContentDecoratorPropertyWrapper

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.4.6
    • 5.4.5
    • core
    • None
    • Basel 36
    • 2

    Description

      Problem

      MgnlAuditLoggingContentDecoratorPropertyWrapper and LastUpdatePropertyWrapper tries to do some operation on the Property when their #setValue(anyObject()) is called, however, this given property may be deleted meanwhile by simply setValue(null) on Property

      Solution

      Exceptions may happen here if the given property is deleted. These exceptions are caused due to fact that we try to do some operations on the property.
      Solution is simple, We should be storing these information beforehand and pass it to the related function instead of deleting the property and trying to do some operations on the very same property after, which obviously is causing some exceptions.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ilgun Ilgun Ilgun
                ilgun Ilgun Ilgun
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1h
                      1h