GithubHelp home page GithubHelp logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Could you provide a sample rule and request URL that demonstrates this please?

Original comment by [email protected] on 19 Aug 2008 at 8:50

from urlrewritefilter.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
[deleted comment]

from urlrewritefilter.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
To reproduce this problem I used this rule:

    <rule>
    <name>Proxy</name>
        <from>^(/bom-auth/.*)$</from>
        <to type="forward">/proxy$1</to>
    </rule>

and made a request to:

      /bom-auth/D%25%2cD.pdf

Which throws this exception:

===================================================================

javax.servlet.ServletException: unable to get request dispatcher for 
/proxy/bom-auth/D%,D.pdf
    at 
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.getRequestDispatcher(Normal
RewrittenUrl.java:263)
    at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:194)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:406)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
        ...

===================================================================

Note the lack of encoding in the url as reported in the stack trace.


Original comment by [email protected] on 19 Aug 2008 at 10:58

from urlrewritefilter.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024

I'm altering decoding of the request.  The following test case will work once 
changes are checked in:

<urlrewrite decode-using="null">
    <rule>
        <name>Proxy</name>
        <from>^/no-decode-test/(.*)$</from>
        <to type="forward">/no-decode-test-$1.jsp</to>
    </rule>
</urlrewrite>

Request made for: /no-decode-test/D%25%2cD

Request is successfully forwarded to: no-decode-test-D%25%2cD.jsp


Original comment by [email protected] on 2 Dec 2008 at 9:55

  • Changed state: Started

from urlrewritefilter.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Set milestone to 3.2.

Original comment by [email protected] on 2 Dec 2008 at 10:23

  • Added labels: Milestone-Release3.2

from urlrewritefilter.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Done.   This will be in 3.2.

Original comment by [email protected] on 5 Dec 2008 at 2:41

  • Changed state: Fixed

from urlrewritefilter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.