POST to dataValueSets resource without xml Content-Type returns 405

Bug #1066839 reported by Saptarshi on 2012-10-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Morten Olav Hansen

Bug Description

When POST to dataValueSets resource of the web-api is made, it returns a 405 (Method not allowed status) if the content-type is not set as application/xml. The headers also returns Allowed: GET. This is confusing the client because although POST is allowed and requires a content-type of application/xml, the response status code is for "Method not allowed".

Ideally in such cases, the response status should be 415 (Unsupported media type) and should say Allowed: GET, POST. This might be considered as an enhancement or bug

Changed in dhis2:
importance: Wishlist → Low
assignee: nobody → Morten Olav Hansen (mortenoh)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers