hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zhuge (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-13588) ConfServlet should respect Accept request header
Date Fri, 11 Aug 2017 18:16:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-13588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Zhuge updated HADOOP-13588:
--------------------------------
    Fix Version/s: 2.8.3
                   2.9.0

> ConfServlet should respect Accept request header
> ------------------------------------------------
>
>                 Key: HADOOP-13588
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13588
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>             Fix For: 2.9.0, 3.0.0-alpha2, 2.8.3
>
>         Attachments: HADOOP-13588.001.patch, HADOOP-13588.002.patch
>
>
> ConfServlet provides a general service to retrieve daemon configurations. However it
doesn't set response content-type according to *Accept* header. For example, by issuing following
command, 
> {code}
> curl --header "Accept:application/json" http://${resourcemanager_host}:8088/conf
> {code}
> I am expecting the response would be in JSON format, however it is still in XML. I can
only get JSON if I issue
> {code}
> curl http://${resourcemanager_host}:8088/conf?format="json"
> {code}
> This is not the common way how clients set content-type.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message