Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-17713

the interface '/version/cluster' with header 'Accept: application/json' return is not JSON but plain text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.2
    • 1.4.0, 2.0.0-alpha-3, 2.0.0
    • REST
    • None
    • Hhbase 1.2.2

    • Reviewed

    Description

      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:8888/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:8888/version/cluster"
      
           <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ClusterVersion>1.2.2</ClusterVersion>
      

      Attachments

        1. HBASE-17713.branch-1.patch
          6 kB
          Guangxu Cheng
        2. HBASE-17713.master.v1.patch
          6 kB
          Guangxu Cheng
        3. HBASE-17713.patch
          5 kB
          Guangxu Cheng

        Activity

          People

            gxcheng Guangxu Cheng
            fengce Feng Ce
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - Not Specified
                Not Specified