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

JavascriptGetInterceptor.isRecognizedQuery is always false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.0.2
    • 3.0.4
    • JavaScript Client
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: