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

Wrong media type of response

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.1, 3.0.5
    • Component/s: JAX-RS
    • Labels:
      None
    • Environment:

      Windows

    • Estimated Complexity:
      Unknown

      Description

      Resource class
      public Response getMediaType()

      { MediaType media = MediaType.APPLICATION_ATOM_XML_TYPE; Response response = Response.ok().type(media).build(); return response; }

      get media type from response on client side is null.
      Spec 3.8 Determining the MediaType of Responses
      1. If the method returns an instance of Response whose metadata includes the response media type
      (Mspecified) then set Mselected = Mspecified, finish.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              nbqyqx@163.com Neal Hu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: