dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19504
[Bug 1066839] [NEW] POST to dataValueSets resource without xml Content-Type returns 405
Public bug reported:
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
** Affects: dhis2
Importance: Wishlist
Status: New
--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1066839
Title:
POST to dataValueSets resource without xml Content-Type returns 405
Status in DHIS 2 - District Health Information Software:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1066839/+subscriptions
Follow ups
References