Uploaded image for project: 'JBoss Web'
  1. JBoss Web
  2. JBWEB-181

Allow rewriting URLs for other contexts

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossWeb-3.0.0.Beta7
    • Fix Version/s: JBossWeb-7.0.0.Beta1
    • Component/s: Core
    • Labels:
      None

      Description

      Line 1537 of o.a.c.c.Response.doIsEncodeable()[1] checks that the URL context matches the webapp context:

      if ((file == null) || !file.startsWith(contextPath))
      return (false);

      There are use cases where a URL would need to be rewritten but not be the same context as the webapp. In addition, Weblogic apparently does not make this check, so it is an issue migrating from Weblogic.

      Can we remove this check, or add a flag where it can be configured to be removed?

      [1]http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossweb/branches/2.1.x/java/org/apache/catalina/connector/Response.java?view=annotate

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mmillson Michael Millson
              Reporter:
              mmillson Michael Millson
              Archiver:
              samahaja Sagar Mahajan

                Dates

                Created:
                Updated:
                Resolved:
                Archived: