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 mo...@apache.org on 2003/07/24 23:17:57 UTC
cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions JetspeedSessionValidator.java
morciuch 2003/07/24 14:17:57
Modified: src/java/org/apache/jetspeed/modules/actions
JetspeedSessionValidator.java
Log:
Improved exception handling for situtation when the username in the cookie is invalid (auto login only).
Revision Changes Path
1.26 +7 -2 jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java
Index: JetspeedSessionValidator.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- JetspeedSessionValidator.java 23 Jul 2003 19:50:10 -0000 1.25
+++ JetspeedSessionValidator.java 24 Jul 2003 21:17:57 -0000 1.26
@@ -146,7 +146,12 @@
}
} catch (LoginException noSuchUser) {
//user not found - ignore it - they will not be logged in automatically
- }
+ } catch (org.apache.jetspeed.services.security.UnknownUserException unknownUser) {
+ //user not found - ignore it - they will not be logged in automatically
+ logger.warn("Username from the cookie was not found: " + userName);
+ } catch (Exception other){
+ logger.error(other);
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org