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

Giving invalid content type without "application/" should give "415 Invalid Content Type" not an NPE error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.3-RC1
    • 2.1.0.GA
    • jaxrs
    • None
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration
    • Workaround Exists
    • Hide

      Use application/ for all API's.

      Show
      Use application/ for all API's.
    • Low

      PUT /api/space/tag-management/tags/<id>/targets (This is our internal API) with a content type of:

      vnd.net.juniper.space.target-management.targets+xml;version=1;charset=UTF-8 (note missing application/ in Content-Type)

      This method gives a 500 (NPE) error, instead of the Invalid Content Type or Method not Allowed error.

              patriot1burke@gmail.com Bill Burke (Inactive)
              dunnross Alexander Kolchinsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: