https://bz.apache.org/bugzilla/show_bug.cgi?id=62688
Bug ID: 62688
Summary: RewriteMap with custom map function does not work
Product: Tomcat 9
Version: 9.0.x
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 36135
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36135&action=edit
Complete jar file for EPSMapPage Map function is attached, pagetypes.txt,
rewrite.config file and the EPSMapPage.java file
RewriteMap with custom map function does not work. We have tested quite heavily
on two different Linux servers. It seems like the map does not read the input
key. What RewriteRule actually sends is the the result of the match of the
RewriteRule as key into the map.
Input file to map:
pagetypes.txt:
p PAGE
a ARTICLE
c CATEGORY
s SEARCH
Example of our test:
RewriteMap pagetypes org.apache.catalina.valves.rewrite.EPSMapPage
pagetypes.txt
RewriteRule .* ${pagetypes:s}
Then we type this URL in browser:
https://test2.tomcat.dev/p
Expected result is that is should try to redirect to this URL internally:
https://test2.tomcat.dev/PAGE
In this case RewriteRule sends in /p to the map pagetypes, but it should send
in letter s.
Complete jar file for EPSMapPage Map function is attached, pagetypes.txt,
rewrite.config file and the EPSMapPage.java file.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]