Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10632

After RewriteValve has rewritten the context path, HttpServletRequest.getRequestURI() still returns the original URI.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.2.0
    • Fix Version/s: EAP_EWP 5.3.0.ER1
    • Component/s: Web
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Add this to $JBOSS_HOME/server/$PROFILE/conf/jboss.web/rewrite.properties:

      RewriteCond %{REQUEST_URI}      ^/.*rewrite-me.*$
      RewriteRule ^/rewrite-me/(.*)    /echoUriServlet/$1
      

      Add this valve under the Engine element in $JBOSS_HOME/server/$PROFILE/deploy/jbossweb.sar/server.xml:

      <Valve className="org.jboss.web.rewrite.RewriteValve"/>
      
      Show
      Add this to $JBOSS_HOME/server/$PROFILE/conf/jboss.web/rewrite.properties : RewriteCond %{REQUEST_URI} ^/.*rewrite-me.*$ RewriteRule ^/rewrite-me/(.*) /echoUriServlet/$1 Add this valve under the Engine element in $JBOSS_HOME/server/$PROFILE/deploy/jbossweb.sar/server.xml : <Valve className= "org.jboss.web.rewrite.RewriteValve" />
    • Release Notes Text:
      Previously when using the RequestDumperValve to rewrite the context path, the original context path would be returned when calling HTTPServletRequest.getRequestURI(). This release changes the value so the rewritten context path is returned instead.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      NEW

      Description

      When the rewrite valve is used to modify the context path, this modification is not updated in HttpServletRequest.getRequestURI().

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                klape Kyle Lape
                Reporter:
                klape Kyle Lape
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: