Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6111

JavascriptGetInterceptor.isRecognizedQuery is always false

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.4
    • Component/s: JavaScript Client
    • Labels:
      None
    • Estimated Complexity:
      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

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              buzzeri Ivan Bondarenko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: