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

handler chain wildcard matching does not quite work

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3, 2.2
    • 2.1.5, 2.2.1
    • JAX-WS Runtime
    • None

    Description

      In AnnotationHandlerChainBuilder the following wildcard check is done:

      if (localPart.contains("*")) {
      //wildcard pattern matching
      return Pattern.matches(localPart, comp.getLocalPart());
      ...

      So, for example if localPart is "foo*", this check will only return true if comp.getLocalPart() returns "foo" followed by any number of o's but will return false on anything else even if the string starts with "foo". According to the spec the "foo*" should match any string starting with "foo", e.g. "fooBar", "fooCXF", etc. Looks like the "" in the localPart need to be first converted into appropriate regex - e.g. localPart = localPart.replace("", ".*");

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkulp Daniel Kulp
            gawor@mcs.anl.gov Jarek Gawor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment