Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/security RedirectException.java UnsecureServlet.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/security RedirectException.java UnsecureServlet.java

Author edk
Full name Ed Korthof
Date 2000-11-10 23:14:27 PST
Message User: edk
  Date: 00/11/10 23:14:26

  Modified: java/org/joist/security RedirectException.java
                        UnsecureServlet.java
  Log:
  provide a way for subclasses of RedirectException to log information
  about themselves (this is specifically for ACLExceptions, but could
  be used by any others).
  
  Revision Changes Path
  1.4 +5 -1 joist/java/org/joist​/security/RedirectEx​ception.java
  
  Index: RedirectException.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Redir​ectException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RedirectException.java 2000/02/29 01:23:58 1.3
  +++ RedirectException.java 2000/11/11 07:14:26 1.4
  @@ -50,7 +50,7 @@
    * The exception raised when a servlet wants to redirect to another servlet.
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -65,5 +65,9 @@
       public RedirectException (String s)
       {
           super (s);
  + }
  + public String dump()
  + {
  + return getMessage();
       }
   }
  
  
  
  1.71 +7 -1 joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Unsec​ureServlet.java,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- UnsecureServlet.java 2000/11/10 23:19:51 1.70
  +++ UnsecureServlet.java 2000/11/11 07:14:26 1.71
  @@ -73,7 +73,7 @@
    * loading to WebMacro servlets.
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.70 $
  + * @version $Revision: 1.71 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 CollabNet, Inc.
  @@ -230,6 +230,12 @@
           String servletName = e.getMessage();
                   String shortServletName = servletName;
                   context.put("redirec​tException", e);
  +
  + // if we've got interesting info, show it
  + String dump = e.dump();
  + if (dump != null && !dump.equals(servletName)) {
  + log.info("RedirectException dump: " + dump);
  + }
   
           // get the full class name from the conf/servlets file
                   servletName = myProperties

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/security RedirectException.java UnsecureServlet.java edk Ed Korthof 2000-11-10 23:14:27 PST
Messages per page: