You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2006/04/28 17:20:19 UTC

[jira] Moved: (SB-3) processLocale creates session no matter if it doesn't exist

     [ http://issues.apache.org/struts/browse/SB-3?page=all ]

Don Brown moved STR-2545 to SB-3:
---------------------------------

      Project: Sandbox  (was: Struts Action 1)
          Key: SB-3  (was: STR-2545)
    Component:     (was: Sandbox)
      Version:     (was: Nightly Build)
    Assign To:     (was: Struts Developer Mailing List)

> processLocale creates session no matter if it doesn't exist
> -----------------------------------------------------------
>
>          Key: SB-3
>          URL: http://issues.apache.org/struts/browse/SB-3
>      Project: Sandbox
>         Type: Bug

>  Environment: Operating System: other
> Platform: All
>     Reporter: Johnny Patino

>
> 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;
>          }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org