Jochen Wilhelm created CXF-8965:
-----------------------------------
Summary: Apache CXF Netty Integration, URI not encoded
Key: CXF-8965
URL: https://issues.apache.org/jira/browse/CXF-8965
Project: CXF
Issue Type: Bug
Components: Integration
Reporter: Jochen Wilhelm
There is an issue when using Apache CXF with Netty. It seems that URI encoding
of pathes, e.g. containing whitespaces doesn't work.
The suspect org.apache.cxf.transport.http.netty.client.NettyHttpClientRequest
line 57 to be the problem.
There the request uri is past but with uri.getPath() which decodes the URI,
instead using uri.getRawPath() should be used.
this.request =
new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,
HttpMethod.valueOf(method),
uri.getPath(), content);
instead using
this.request =
new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,
HttpMethod.valueOf(method),
uri.getRawPath(), content);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)