Hi.
I do not understand what happens with query paramers and URI encoding in
Tomcat 8.5.5.
On client side, the query is :
https://localhost:8447/adele_admin/ldapapi/personnes?mot=P%C3%A9net
Where "Pénet" is, as far as I understand, correctly encoded.
On server side, the Connector-s all have URIEncoding forced to UTF-8
(which is the default value anyway).
In the logs, I can see :
::1 - - [15/Sep/2016:15:52:27 +0200] "OPTIONS
/adele_admin/ldapapi/personnes?mot=Pénet HTTP/2.0" 200 -
::1 - lpenet [15/Sep/2016:15:52:41 +0200] "GET
/adele_admin/ldapapi/personnes?mot=Pénet HTTP/2.0" 404 -
(404 is ok there)
But request.getQueryString() (where request is the HttpServletRequest
instance passed by tomcat) returns a wrongly encoded
mot=Pénet
and
request.getParameter("mot")
returns
"Pénet"
I need the query string to be ok so that libraries like RestEasy which
relies on it correctly works. In my REST api, I get poorly encoded
@QueryParam-s...
Is there a parameter I missed ? I carefully reviewed the CHANGELOG, but
might have missed something...
Thanks in advance,
Ludovic
|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org