[
https://issues.apache.org/jira/browse/CXF-6111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-6111.
------------------------------
Resolution: Fixed
Fix Version/s: 3.0.4
Assignee: Daniel Kulp
> 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
> Assignee: Daniel Kulp
> Priority: Blocker
> Fix For: 3.0.4
>
>
> 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)