Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: MODIFIED: security ...

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: MODIFIED: security ...

Author stack
Full name Michael Stack
Date 2001-05-04 00:18:19 PDT
Message User: stack
  Date: 01/05/04 00:18:19

  Modified: java/org/joist/security UnsecureServlet.java
  Log:
  Allow for processRequest returning a null templateName. Let a returned
  null templateName signal that the request has been completly handled by
  the called servlet (i.e The called servlet has written the headers and
  body straight to the browser). Such a facility is needed to get around
  the fact that WM always adds a new-line to end of page; thie extra
  new-line was breaking binary downloads that came via Noodle (IZ3410).
  
  Revision Changes Path
  1.128 +10 -2 joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  http://joist.tigris.​org/source/browse/jo​ist/java/org/joist/s​ecurity/UnsecureServ​let.java.diff?r1=1.1​27&r2=1.128
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/joist/java/org/jo​ist/security/Unsecur​eServlet.java,v
  retrieving revision 1.127
  retrieving revision 1.128
  diff -u -b -r1.127 -r1.128
  --- UnsecureServlet.java 2001/05/02 03:45:55 1.127
  +++ UnsecureServlet.java 2001/05/04 07:18:19 1.128
  @@ -82,7 +82,7 @@
    *
    * @author <a href="mailto:davidp@​dataweb-systems.com"​>David C. Pellegrini</a>
    * @author <a href="mailto:dlr@col​lab.net">Daniel Rall</a>
  - * @version $Revision: 1.127 $
  + * @version $Revision: 1.128 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999-2001 CollabNet, Inc.
  @@ -257,6 +257,13 @@
               {
                   // Process the request; this is where the real work is done.
                   // Put data into the context and return a template name.
  + //
  + // NOTE: If the call to processRequest returns a null template
  + // name, let this be a signal that the servlet called w/
  + // processRequest handled the request completly taking care of
  + // writing the response; there is no more work to be done on
  + // the response.
  + //
                   templateName = null;
                   try
                   {
  @@ -274,6 +281,7 @@
                   }
   
                   // Process the template.
  + if( templateName != null )
                   TurbineWebMacro.hand​leRequest(context, templateName,
                                                 res.getOutputStream());
                   //, res.getCharacterEncoding());
  
  
  

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@jois​t.tigris.org
For additional commands, e-mail: cvs-help at joist dot tigris dot org

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

Messages

Show all messages in topic

CVS update: MODIFIED: security ... stack Michael Stack 2001-05-04 00:18:19 PDT
Messages per page: