Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.0.2
-
None
-
Novice
Description
Providing we have an application: "http://server/app" and WS running on it here: "http://server/app/ws". The "http://server/app/ws?js" will never be rendered.
The method org.apache.cxf.javascript.JavascriptGetInterceptor.isRecognizedQuery(...) always returns false, because of the code: endpointInfo.getAddress().contains(UrlUtils.getStem(uri.getSchemeSpecificPart()))
In the example endpointInfo.getAddress() returns "/" and UrlUtils.getStem(uri.getSchemeSpecificPart()) returns "//server/app", so contains(...) always false.
If we look into similar method org.apache.cxf.frontend.WSDLGetInterceptor.isRecognizedQuery(...), it haven't such part of code.
So I wonder if somebody ever run this Interceptor successfully, unless it is possible to absolutize addresses somehow.
Proposition: always return true, so replace endpointInfo.getAddress().contains(UrlUtils.getStem(uri.getSchemeSpecificPart())) to true