Uploaded image for project: 'OpenIG'
  1. OpenIG
  2. OPENIG-458

CookieFilter is not JwtSession compatible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Component/s: Core
    • Support Ticket IDs:

      Description

      The CookieFilter heap object now stores a java.net.CookieManager reference in the exchange.session. That make sense since the cookies are related to HTTP session.

      This is working fine when the Session is backed by an HttpSession object.
      But that fails when used with a JwtSession:

      The object referenced through 'java.net.CookieManager' cannot be safely serialized as JSON
      

      The reason is that the JwtSession ensure that stored references are JSON compatible (primitive types, list/arrays and map are the only accepted types).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              guillaume.sauthier Guillaume Sauthier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: