taylor      2004/04/06 20:41:22

  Modified:    portal/src/java/org/apache/jetspeed/request
                        JetspeedRequestContext.java
  Log:
  bug fix, causing Tomcat to NPE when tokenizing the path info

  

  PR:

  Obtained from:

  Submitted by: 

  Reviewed by:  

  CVS: ----------------------------------------------------------------------

  CVS: PR:

  CVS:   If this change addresses a PR in the problem report tracking

  CVS:   database, then enter the PR number(s) here.

  CVS: Obtained from:

  CVS:   If this change has been taken from another system, such as NCSA,

  CVS:   then name the system in this line, otherwise delete it.

  CVS: Submitted by:

  CVS:   If this code has been contributed to Apache by someone else; i.e.,

  CVS:   they sent us a patch or a new module, then include their name/email

  CVS:   address here. If this is your work then delete this line.

  CVS: Reviewed by:

  CVS:   If we are doing pre-commit code reviews and someone else has

  CVS:   reviewed your changes, include their name(s) here.

  CVS:   If you have not had it reviewed then delete this line.

  
  Revision  Changes    Path
  1.14      +4 -3      
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/request/JetspeedRequestContext.java
  
  Index: JetspeedRequestContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/request/JetspeedRequestContext.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JetspeedRequestContext.java       6 Apr 2004 19:57:38 -0000       1.13
  +++ JetspeedRequestContext.java       7 Apr 2004 03:41:22 -0000       1.14
  @@ -382,11 +382,12 @@
        */
       public String getPath()
       {
  -        String pathInfo = request.getPathInfo();
  -        if (pathInfo == null)
  +        if (request.getPathInfo() == null)
           {
               return null;
           }
  +        String pathInfo = new String(request.getPathInfo());
  +        System.out.println("path info = " + pathInfo);
           StringTokenizer tokenizer = new StringTokenizer(pathInfo, "/");
           StringBuffer path = new StringBuffer();
           int mode = 0; // 0=navigation, 1=control information
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to