Comments (6)
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.
[deleted comment]
from urlrewritefilter.
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.
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.
Set milestone to 3.2.
Original comment by [email protected]
on 2 Dec 2008 at 10:23
- Added labels: Milestone-Release3.2
from urlrewritefilter.
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)
- Relative URI in to-clause leads to currupt Location field, when type="permanent-redirect" or type="temporary-redirect"
- Loading config from servlet 3 web-fragment classpath fails HOT 3
- last="true" not behaving as expected
- redirect url is not absolute
- add default last attribute
- add sendError support
- add custom condition method
- OutBound rules are not working in Struts Application
- condition type="request-filename" is not documented
- .js Library Files are not Loading post the ugrade of the application HOT 1
- Invalid Type Accepted
- This webpage has a redirect loop HOT 1
- missing values for attribute type in the last Document Type Definition
- Migrate to github
- Separate Urlrewrite file for multiple project in tomcat.
- Java compatibility
- isfilewithsize never worked! HOT 2
- Redirect URL is incorrectly formatted - contexpath inserted in the middle of the uri
- add parameters if they are missing
- Bad VariableReplacer regex, causing some vars to be ignored in the urlrewrite.xml file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urlrewritefilter.