Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3178

Make extractResult fail-fast when there's no content type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.2.0.Beta1, 6.2.0.Final
    • None
    • None
    • None

    Description

      Original PR and conversation: https://github.com/resteasy/resteasy/pull/3030

      This is a breaking change, it's probably a starting point. Probably a configuration is needed to opt-in for the feature.

      Returning null here doesn't seem correct at all. Determining a way to reproduce this would be ideal to see what happens. Not having a media type in general seems like a bug.

      If the server doesn't send the Content-Type header, the client gets null with no explanation. AFAIU, the only way to troubleshoot is debugging.

      Per the documentation, the ResponseProcessingException might be the correct exception to throw.

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: