Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.1
    • Fix Version/s: 0.1
    • Component/s: Common
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      This issue probably needs discussion, as it may be a spec interpretation issue. Please reference JAX-RS javadoc for javax.ws.rs.ext.Providers.getContextResolver here:

      http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/Providers.html#getContextResolver(java.lang.Class,%20javax.ws.rs.core.MediaType)

      Currently, the implementation does not use the '*' character in a passed-in media type as a wildcard. Rather, it matches exactly by just allowing the LinkedHashMap.get to it's object compare. Attached is a patch with tests that demonstrate the proposed function, and a fix that supports it. All existing and new tests in wink-common and wink-server passed for me with this change.

        Attachments

        1. patch.txt
          6 kB
          Mike Rheinheimer
        2. patch_02.txt
          7 kB
          Mike Rheinheimer

          Issue Links

            Activity

              People

              • Assignee:
                elman Michael Elman
                Reporter:
                rott Mike Rheinheimer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: