Issue Details (XML | Word | Printable)

Key: GLASSFISH-1425
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: jluehe
Reporter: jluehe
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
glassfish

Catalina's (de)serialization mechanism for HTTP sessions does not support StandardSession subclasses

Created: 03/Nov/06 03:00 PM   Updated: 30/Nov/10 05:47 PM   Resolved: 30/Nov/06 04:28 PM
Component/s: web_container
Affects Version/s: 9.1pe
Fix Version/s: 9.1pe_dev

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: Sun


Issuezilla Id: 1,425
Status Whiteboard:

fixed-pwc12

Tags:
Participants: jluehe and kmeduri


 Description  « Hide

Catalina's (de)serialization mechanism for HTTP sessions does not follow
standard serialization contracts and makes it hard if not impossible for
o.a.c.session.StandardSession subclasses to have additional data serialized.

This functionality is needed for (de)serializing in-memory replicated sessions.



jluehe added a comment - 08/Nov/06 05:14 PM

Fixed:

Checking in FileStore.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/FileStore.java,v
<-- FileStore.java
new revision: 1.3; previous revision: 1.2
done
Checking in JDBCStore.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/JDBCStore.java,v
<-- JDBCStore.java
new revision: 1.4; previous revision: 1.3
done
Checking in StandardManager.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StandardManager.java,v
<-- StandardManager.java
new revision: 1.12; previous revision: 1.11
done
Checking in StandardSession.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StandardSession.java,v
<-- StandardSession.java
new revision: 1.23; previous revision: 1.22
done
Checking in StoreBase.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StoreBase.java,v
<-- StoreBase.java
new revision: 1.7; previous revision: 1.6
done


jluehe added a comment - 10/Nov/06 04:44 PM

Incremental fix: Now that standard deserialization is used by default, make sure
that any transient fields that are instantiated at construction time are also
instantiated during "readObject".


jluehe added a comment - 10/Nov/06 04:45 PM

Checking in StandardSession.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StandardSession.java,v
<-- StandardSession.java
new revision: 1.24; previous revision: 1.23
done


kmeduri added a comment - 30/Nov/06 04:21 PM

Merged the fix to PWC12Dev_Branch:

Checking in
appserv-webtier/src/java/org/apache/catalina/session/FileStore.java;/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/FileStore.java,v
<-- FileStore.java
new revision: 1.2.16.1; previous revision: 1.2
done
Checking in
appserv-webtier/src/java/org/apache/catalina/session/JDBCStore.java;/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/JDBCStore.java,v
<-- JDBCStore.java
new revision: 1.3.16.1; previous revision: 1.3
done
Checking in
appserv-webtier/src/java/org/apache/catalina/session/StandardManager.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StandardManager.java,v
<-- StandardManager.java
new revision: 1.9.6.2; previous revision: 1.9.6.1
done
Checking in
appserv-webtier/src/java/org/apache/catalina/session/StandardSession.java;
/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StandardSession.java,v
<-- StandardSession.java
new revision: 1.18.6.2; previous revision: 1.18.6.1
done
Checking in
appserv-webtier/src/java/org/apache/catalina/session/StoreBase.java;/cvs/glassfish/appserv-webtier/src/java/org/apache/catalina/session/StoreBase.java,v
<-- StoreBase.java
new revision: 1.6.16.1; previous revision: 1.6
done


kmeduri added a comment - 30/Nov/06 04:28 PM

CCed kmeduri