-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to match jsessionid from URL ? #232
Comments
Hi Manuel, I tested your rule with version 4.0.3 und 5.0.0 on a tomcat8 and it works just fine for me. So IMO it could be a problem with your container-setup. Have you tried to set the loglevel of class org.tuckey.web.filters.urlrewrite.RuleBase to DEBUG. Then you could find out, which exact URL is handled by the rule. Regards Thorsten |
Hi Thorsten, Thank you for your opinion. Yes, I've tried logLevel sysout:DEBUG and no more infos about processed URLs. For test request :
and rule (the only one!) :
I see URLRewriteFileter log as :
No ";jsessionid" and no parameter ?! I am still stucked and DEBUG didn't help me much. One more thing, I've tried to see some infos from my Filter class MyFilter.java and I saw this output :
Does this make sense to someone ? Thanks for your help |
How do you achieved your tests with urlrewritefilter "version 4.0.3 und 5.0.0 " as version 5.0.0 does not already exist, AFAIK ? Regards, Manuel |
Hi Manuel, I built the master branch by myself and used this artefact. According to the pom.xml this is version 5.0. But I agree that there is no official release of this version. Regards Thorsten |
Hi Paul, hi people,
First of all big thanx for URLRewriteFilter... ...you really saved my time (my ass too) !
I use it from many years without any problem.
But now I am unable to achieve a rule to match requests URLs with a path part containing ";jsessionid=whatever".
I tried some test rules as :
<rule> <from>^(.*)(?:\;jsessionid=[A-Za-z0-9]+)(.*)$</from> <to>null</to> </rule>
and
<rule> <from>^(.*);jsessionid=[A-Za-z0-9]+)(.*)$</from> <to>null</to> </rule>
, but it never works :(
Im my web app request log I can see the jsessionid as :
HTTPS [serverIP] ([remoteHost]) [11/Oct/2018:17:28:41 +0100] ([userAgent]) "www.mydomain.com:443 GET /somepage.jsp;jsessionid=ABCDEFGHIJKL?lan=en HTTP/1.1" 3230 [200]
Am I missing something ?
I am using urlrewritefilter-4.0.3.jar with an oc4j servlet container. My webapp is compiled with jdk1.6.0_45 (for compatibility reasons) and running under jdk1.8.0_144.
The webapp config has session cookies enabled as :
I am stucked in and I will really appreciate some help,
Cordially,
Manuel
The text was updated successfully, but these errors were encountered: