portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/security/src/java/org/apache/jetspeed/portlets/security ChangePasswordPortlet.java
Date Tue, 04 Jan 2005 15:50:38 GMT
weaver      2005/01/04 07:50:38

  Modified:    applications/security/src/java/org/apache/jetspeed/portlets/security
                        ChangePasswordPortlet.java
  Log:
  consolidating request/session keys.
  
  Revision  Changes    Path
  1.5       +3 -3      jakarta-jetspeed-2/applications/security/src/java/org/apache/jetspeed/portlets/security/ChangePasswordPortlet.java
  
  Index: ChangePasswordPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/security/src/java/org/apache/jetspeed/portlets/security/ChangePasswordPortlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ChangePasswordPortlet.java	23 Dec 2004 16:55:23 -0000	1.4
  +++ ChangePasswordPortlet.java	4 Jan 2005 15:50:37 -0000	1.5
  @@ -79,7 +79,7 @@
               //                  After the fix, the RequestContext should be retrieved from
the RenderRequest
               //                  and the pluto depedency removed from this project project.xml
               HttpServletRequest req = (HttpServletRequest)((PortletRequestImpl)request).getRequest();
  -            RequestContext requestContext = (RequestContext)req.getAttribute(RequestContext.REQUEST_PORTALENV);
  +            RequestContext requestContext = (RequestContext)req.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
               Integer passwordDaysValid = (Integer)requestContext.getAttribute(PasswordCredential.PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY);
               
               if ( passwordDaysValid != null )
  @@ -166,7 +166,7 @@
   
                           // refresh/update Subject in session to reflect the changed PasswordCredential
                           Subject subject = manager.getUser(userName).getSubject();
  -                        RequestContext requestContext = (RequestContext)actionRequest.getAttribute(RequestContext.REQUEST_PORTALENV);
                 
  +                        RequestContext requestContext = (RequestContext)actionRequest.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
                 
                           requestContext.setSessionAttribute(PortalReservedParameters.SESSION_KEY_SUBJECT,
subject);
                       }
                       catch ( SecurityException e)
  
  
  

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


Mime
View raw message