You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/08/10 22:58:12 UTC
DO NOT REPLY [Bug 36134] New: -
processLocale creates session no matter if it doesn't exist
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36134>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36134
Summary: processLocale creates session no matter if it doesn't
exist
Product: Struts
Version: Nightly Build
Platform: All
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Struts Flow
AssignedTo: dev@struts.apache.org
ReportedBy: jpatino@shaw.ca
CC: jpatino@shaw.ca
Index: RequestProcessor.java
===================================================================
RCS file:
/home/cvspublic/jakarta-struts/src/share/org/apache/struts/action/RequestProcessor.java,v
retrieving revision 1.45
diff -u -r1.45 RequestProcessor.java
--- RequestProcessor.java 25 Apr 2004 02:29:41 -0000 1.45
+++ RequestProcessor.java 10 Aug 2005 17:49:41 -0000
@@ -599,7 +599,9 @@
}
// Has a Locale already been selected?
- HttpSession session = request.getSession();
+ HttpSession session = request.getSession(false);
+ if (session == null)
+ return;
if (session.getAttribute(Globals.LOCALE_KEY) != null) {
return;
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org