You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/06/12 20:59:08 UTC
DO NOT REPLY [Bug 45195] New: Possible regression issue with
HttpSession.
getAtttribute()
https://issues.apache.org/bugzilla/show_bug.cgi?id=45195
Summary: Possible regression issue with
HttpSession.getAtttribute()
Product: Tomcat 5
Version: 5.5.26
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jonathan.leffingwell.ctr@navy.mil
We just upgraded from Tomcat 5.0.x to 5.5.26. In Tomcat 5.0.x, the following
code returned NULL to obj:
HttpSession session = request.getSession(true);
Object obj = session.getAttribute(null);
In Tomcat 5.5.26, that same code raises this exception:
java.lang.NullPointerException
java.util.Hashtable.get(Unknown Source)
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1024)
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:110)
NewServlet.processRequest(NewServlet.java:29)
NewServlet.doGet(NewServlet.java:52)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
I know how to code around it, but doesn't this qualify as a bug, at least for
regression purposes?
FYI: I'm using JDK 5.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45195] Possible regression issue with
HttpSession.getAtttribute()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45195
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Mark Thomas <ma...@apache.org> 2008-08-14 02:11:54 PST ---
This has been fixed in 5.5.x and will be included in 5.5.27 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45195] Possible regression issue with HttpSession.
getAtttribute()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45195
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-06-12 15:07:42 PST ---
The spec is non-specific in this case.
You could argue this either way but the fix should be trivial. I'll take a
look.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45195] Possible regression issue with HttpSession.
getAtttribute()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45195
--- Comment #3 from Mark Thomas <ma...@apache.org> 2008-06-26 13:17:41 PST ---
This has been fixed in 6.0.x and will be included in 6.0.17 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45195] Possible regression issue with HttpSession.
getAtttribute()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45195
--- Comment #2 from Mark Thomas <ma...@apache.org> 2008-06-13 12:26:48 PST ---
This has been fixed in trunk and proposed for 6.0.x and 5.5.x
Thanks for the report.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org