You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
The proxy service is calling getPathInfo() to compose the URL to redirect to but, according to the J2EE spec, this is decoding the URL while the proxy should pass it as is. For example, if the URL path contains an encoded '/', this should not be decoded. On the other hand, getRequestURI() returns the raw path, so this is what should be used.
The code in ProxyEndpointService should be changed as shown bellow:
@OverrideprotectedvoidinitProxy(HttpServletRequestrequest, HttpServletResponseresponse)
throwsServletException {
// PHIL: Fix the pathinfo to get it encoded//String pathInfo = request.getPathInfo();String_reqURI = request.getRequestURI();
intw = _reqURI.indexOf("/proxy/");
StringpathInfo = _reqURI.substring(w);
The text was updated successfully, but these errors were encountered:
The proxy service is calling getPathInfo() to compose the URL to redirect to but, according to the J2EE spec, this is decoding the URL while the proxy should pass it as is. For example, if the URL path contains an encoded '/', this should not be decoded. On the other hand, getRequestURI() returns the raw path, so this is what should be used.
The code in ProxyEndpointService should be changed as shown bellow:
The text was updated successfully, but these errors were encountered: