REST interface percent (%) not encoded when defined in a template parameter
When the URL is defined as http:// host::port/root_context/service/{param}
With parameter defined as follow:
- name : param
- value : REST_%_TestOfPercentEncoding
- Style: TEMPLATE
- Level : RESOURCE
Systematically the following error is returned whatever the encoding is activated or disabled
Thu Jun 04 16:32:14 CEST 2015:ERROR:An error occurred [URLDecoder: Incomplete trailing escape (%) pattern], see error log for details
while normally URL should be encoded as follow http:// host::port/root_context/service/REST_%25_TestOfPercentEncoding
==> I do not understand what to do to make the URL works correctly in case of TEMPLATE.
Note that, it works correctly for the other cases:
* When I redo the test with
Style: QUERY
the URL is correctly encoded as
http:// host::port/root_context/service?param=REST_%25_TestOfPercentEncoding
* When I redo the test with
value : REST_ _TestOfSpaceEncoding
Style: TEMPLATE
the URL is correctly encoded as
http:// host::port/root_context/service/REST_%20_TestOfSpaceEncoding
Regards