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

WebContextImpl is not Serializable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • core
    • None

    Description

      info.magnolia.context.WebContextImplTest#testSerializable verifies that WebContextImpl is serializable. While this is all good and well, it turns out that WebContextImpl is NOT serializable if it's been init()'d.
      Add the following line:
      context.init(null, null, null);

      And bang, the test fails:

      junit.framework.AssertionFailedError: WebContextImpl should be serializable, failed with: java.io.NotSerializableException: info.magnolia.context.RequestAttributeStrategy
      

      Since all WebContext instances are meant to be initialized before usage, we can conclude WebContextImpl is NOT serializable.

      Question is: does it need to be ?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD