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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to