-
1. Re: Mod Cluster encoding Issue - Urgent
jfclere Dec 6, 2013 2:26 AM (in response to sandy2487)"ー" Doesn't look like something valid for an URL.
your description is too vague to be investigated could you come with a small example?
-
2. Re: Mod Cluster encoding Issue - Urgent
sandy2487 Dec 6, 2013 11:16 AM (in response to jfclere)Jean,
"ー" does not look like a valid string in URL but it is being encoded to UTF 8 before being sent to mod_cluster.
So mod_cluster just has to not alter the encoding which it is doing.
For Example,
Original URL : /images/Pepーsi.jpg/?productIdType=ABC
Encoded URL : /images/Pep%E3%83%BCsi.jpg/?productIdType=ABC
URL Transformed by Mod_Cluster : /images/Pepã¼si.jpg/?productIdType=ABC
Please let me know if anything else is required.
-
3. Re: Mod Cluster encoding Issue - Urgent
jfclere Dec 9, 2013 9:18 AM (in response to sandy2487)Where is the URL, in an html page?
-
4. Re: Mod Cluster encoding Issue - Urgent
sandy2487 Dec 9, 2013 12:47 PM (in response to sandy2487)It is not in the HTML . It is being used to redirect requests between controllers.
-
5. Re: Mod Cluster encoding Issue - Urgent
jfclere Dec 18, 2013 5:53 AM (in response to sandy2487)Probably you need to have
nocanon in the ProxyPass directive, you should try something like:
ProxyPass / balancer://mybalancer/
nocanon
could you debug mod_cluster (LogLevel debug) in httpd.conf?
-
6. Re: Mod Cluster encoding Issue - Urgent
rhusar Dec 17, 2013 8:34 AM (in response to jfclere)Very interesting problem. For what its worth, if its possible I would avoid similar characters in URLs and canonize the URLs to ASCII or so (especially if they are accessible from the web).
It looks to me that mod_cluster converts the characters eagerly somewhere, i.e. %E3 being ã, %83 being ƒ and %BC being ¼ (in your post the 2nd character is missing Re: Mod Cluster encoding Issue - Urgent which is either a typo or the problem is even more interesting) instead of resolving to correct Japanese character which is represented by those three.
-
7. Re: Mod Cluster encoding Issue - Urgent
mbabacek Feb 18, 2014 11:00 AM (in response to sandy2487)There is no such error, at least not in mod_cluster 1.2.6.
This is an output from some tests:
- Request GET: http://10.16.88.19:8847/clusterbench/requestinfo?image=Pep%E3%83%BCsi.jpg&productIdType=ABC
- Response from test Servlet:
Query string: image=Pep%E3%83%BCsi.jpg&productIdType=ABC
Query string UTF-8 decoded: image=Pepーsi.jpg&productIdType=ABC
JVM route: jboss-eap-6.2
Session ID: Y-fvBhB0yHirbQCCTLz2mfFM.jboss-eap-6.2
- Request GET: http://10.16.88.19:8847/clusterbench/requestinfo?%E2%98%B9=%E2%98%BB
- Response from test Servlet:
Query string: %E2%98%B9=%E2%98%BB
Query string UTF-8 decoded: ☹=☻
JVM route: jboss-eap-6.2
Session ID: GpJk6J91Rh2KvOmsamcZNURM.jboss-eap-6.2
10.16.88.19:8847 is Apache HTTP Server 2.2.22 with mod_cluster 1.2.6.
BTW: request.getParameterMap() would give some gibberish, because it's not automatically decoded...
Cheers