Ivan Bondarenko created CXF-6111:
------------------------------------

             Summary: JavascriptGetInterceptor.isRecognizedQuery is always false
                 Key: CXF-6111
                 URL: https://issues.apache.org/jira/browse/CXF-6111
             Project: CXF
          Issue Type: Bug
          Components: JavaScript Client
    Affects Versions: 3.0.2
            Reporter: Ivan Bondarenko
            Priority: Blocker


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}}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to