You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Feng Ce (JIRA)" <ji...@apache.org> on 2017/03/13 03:21:04 UTC

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

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:8888/namespaces/default"
# {NAME => 'default'}
{code}

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

when use 'text/xml'
{code}
curl -X GET \
    -H "Accept: text/xml" \
    "http://localhost:8888/namespaces/default"
# <?xml version="1.0" encoding="UTF-8" standalone="yes"?><NamespaceProperties/>
{code}



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