[
https://issues.apache.org/jira/browse/YUNIKORN-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wilfred Spiegelenburg resolved YUNIKORN-1734.
---------------------------------------------
Fix Version/s: 1.3.0
Resolution: Fixed
all rest calls now have the same response headers in all cases
thank [~zhuqi]
> Missing headers in REST response
> --------------------------------
>
> Key: YUNIKORN-1734
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1734
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: core - common
> Reporter: Wilfred Spiegelenburg
> Assignee: Qi Zhu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.3.0
>
>
> REST responses should have the content type header set to JSON.
> The usage REST responses, users; user; groups and group, do not have any
> headers set as they do not call {{writeHeaders(w)}}.
> Also in case that the parameters are not set we return a JSON error response
> object without setting the header (introduced in YUNIKORN-1472). The JSON
> error response is written before without ever calling {{writeHeaders(w)}}.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]