shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Les Hazlewood (Created) (JIRA)" <>
Subject [jira] [Created] (SHIRO-325) org.apache.shiro.session.mgt.SimpleSession serializes fields twice
Date Tue, 27 Sep 2011 22:06:45 GMT
org.apache.shiro.session.mgt.SimpleSession serializes fields twice

                 Key: SHIRO-325
             Project: Shiro
          Issue Type: Bug
          Components: Session Management
    Affects Versions: 1.1.0, 1.0.0
            Reporter: Les Hazlewood
            Assignee: Les Hazlewood
             Fix For: 1.2.0

SimpleSession serializes fields twice - once via the 'writeObject' implementations' call to
out.writeDefaultObject(), and again via the custom bitmask-based serialization that follows

The internal fields should be marked as transient to prevent this.  out.writeDefaultObject
should still be called for JVM security reasons, but SimpleSession's custom field-based serialization
is more efficient so it should be retained.  The solution is to mark all custom-serialized
fields as transient.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message