weaver      2004/08/19 06:59:34

  Modified:    portal/src/java/org/apache/jetspeed/request
                        JetspeedRequestContext.java
  Log:
  getPath() was not putting the leading slash back into the path after removing the 
navigation and control parameters.  This was
  making the result inconsistent with HttpServletRequest.getPath(), which always has a 
leading slash
  
  Revision  Changes    Path
  1.30      +3 -7      
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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- JetspeedRequestContext.java       18 Aug 2004 13:55:57 -0000      1.29
  +++ JetspeedRequestContext.java       19 Aug 2004 13:59:34 -0000      1.30
  @@ -449,13 +449,9 @@
               path.append(token);
               count++;
           }
  -        String result = path.toString();
  -        if (result.equals("/") || result.trim().length() == 0)
  -        {
  -            this.requestPath = null;
  -            return null;
  -        }
  -        this.requestPath = result;
  +        
  +        this.requestPath = "/" + path.toString();
  +        
           return this.requestPath;
       }
   
  
  
  

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

Reply via email to