You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by wo...@apache.org on 2008/09/09 16:54:25 UTC

svn commit: r693478 - /portals/jetspeed-2/applications/j2-admin/branches/security-refactoring/src/main/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java

Author: woonsan
Date: Tue Sep  9 07:54:25 2008
New Revision: 693478

URL: http://svn.apache.org/viewvc?rev=693478&view=rev
Log:
Flattening Security APIs.
Fixed my previous mistake using unmodifiable user info map.

Modified:
    portals/jetspeed-2/applications/j2-admin/branches/security-refactoring/src/main/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java

Modified: portals/jetspeed-2/applications/j2-admin/branches/security-refactoring/src/main/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/branches/security-refactoring/src/main/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java?rev=693478&r1=693477&r2=693478&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/branches/security-refactoring/src/main/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java (original)
+++ portals/jetspeed-2/applications/j2-admin/branches/security-refactoring/src/main/java/org/apache/jetspeed/portlets/registration/ForgottenPasswordPortlet.java Tue Sep  9 07:54:25 2008
@@ -57,7 +57,7 @@
  *
  * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  * @author <a href="mailto:chris@bluesunrise.com">Chris Schaefer</a>
- * @version $Id: $
+ * @version $Id$
  */
 public class ForgottenPasswordPortlet extends AbstractVelocityMessagingPortlet
 {
@@ -279,7 +279,14 @@
 
             String urlGUID = makeGUID(userName, newPassword);
 
-            Map<String, String> userAttributes = user.getInfoMap();
+            Map<String, String> userAttributes = new HashMap<String, String>();
+            Map<String, String> userInfoMap = user.getInfoMap();
+            
+            for (Map.Entry<String, String> entry : userInfoMap.entrySet())
+            {
+                userAttributes.put(entry.getKey(), entry.getValue());
+            }
+
             // special attributes
             userAttributes.put(CTX_RETURN_URL, generateReturnURL(request,
                     response, urlGUID));



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