https://bz.apache.org/bugzilla/show_bug.cgi?id=58988

Felix Schumacher <felix.schumac...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

--- Comment #8 from Felix Schumacher <felix.schumac...@internetallee.de> ---
When a RewriteRule such as

RewriteRule /abc /r%20

is used, the %2 will be interpreted as a back-reference to a match.

Your condition has two matching groups, but %2 would reference back to a third
group, that does not exist. That's where the NPE comes from. (I left out the
matching groups for simplicity.)

If you escape the % with a backslash, it will be put verbatim in the (url
decoded) rewritten path and finally url encoded into %25.

What you need is a way to encode %20 into a static string - that is a space in
this case, right?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to