[ 
https://issues.apache.org/jira/browse/HBASE-17713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155952#comment-16155952
 ] 

Hudson commented on HBASE-17713:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-2.0 #467 (See 
[https://builds.apache.org/job/HBase-2.0/467/])
HBASE-17713 the interface '/version/cluster' with header 'Accept: (tedyu: rev 
d7a74a75a133810ec5159ede1e451b2e0f281310)
* (edit) 
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/client/TestXmlParsing.java
* (edit) 
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestVersionResource.java
* (edit) 
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/StorageClusterVersionModel.java
* (edit) 
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestStorageClusterVersionModel.java


> the interface '/version/cluster' with header 'Accept: application/json' 
> return is not JSON but plain text
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-17713
>                 URL: https://issues.apache.org/jira/browse/HBASE-17713
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 1.2.2
>         Environment: Hhbase 1.2.2
>            Reporter: Feng Ce
>            Assignee: Guangxu Cheng
>            Priority: Minor
>             Fix For: 1.4.0, 1.5.0, 2.0.0-alpha-3
>
>         Attachments: HBASE-17713.branch-1.patch, HBASE-17713.master.v1.patch, 
> HBASE-17713.patch
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> Hbase REST API, this interface `get 'version/cluster'`, when I use the header 
> `Accept: application/json`, the response is not JSON but plain text.
> {code:none}
>     curl -X GET \
>       -H "Accept: application/json" \
>       "http://localhost:8888/version/cluster";
>    "1.2.2"
> {code}
> But when I use `Accept: text/xml`, the response is correct XML.
> {code:none}
>     curl -X GET \
>       -H "Accept: text/xml" \
>       "http://localhost:8888/version/cluster";
>      <?xml version="1.0" encoding="UTF-8" 
> standalone="yes"?><ClusterVersion>1.2.2</ClusterVersion>
> {code}



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

Reply via email to