[jira] [Created] (HBASE-17776) the interface '/namespaces/namespace' , set to receive JSON/XML responses return wrong value

2017-03-12 Thread Feng Ce (JIRA)
Feng Ce created HBASE-17776:
---

 Summary: the interface '/namespaces/namespace' , set  to receive 
JSON/XML responses return wrong value
 Key: HBASE-17776
 URL: https://issues.apache.org/jira/browse/HBASE-17776
 Project: HBase
  Issue Type: Bug
  Components: REST
Affects Versions: 1.2.2
Reporter: Feng Ce


the interface '/namespaces/namespace' sames rerurn wrong value.
{code}
curl -X GET \
"http://localhost:/namespaces/default;
# {NAME => 'default'}
{code}

when use 'application/json'
{code}
curl -X GET \
-H "Accept: application/json" \
"http://localhost:/namespaces/default;
# {"properties":null}
{code}

when use 'text/xml'
{code}
curl -X GET \
-H "Accept: text/xml" \
"http://localhost:/namespaces/default;
# 
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (HBASE-17713) the interface '/version/cluster' with header 'Accept: application/json' return is not JSON but plain text

2017-03-01 Thread Feng Ce (JIRA)
Feng Ce created HBASE-17713:
---

 Summary: 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
Priority: Minor


Hbase REST API, this interface `get 'version/cluster'`, when I use the header 
`Accept: application/json`, the response is not JSON but plain text.

curl -X GET \
  -H "Accept: application/json" \
  "http://localhost:/version/cluster;
# "1.2.2"

But when I use `Accept: text/xml`, the response is correct XML.

curl -X GET \
  -H "Accept: text/xml" \
  "http://localhost:/version/cluster;
# 1.2.2



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)