Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1029

Knox WebHBase call returns a 404 not found when there is Special characters in a HBase row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.12.0, 0.13.0
    • 0.14.0
    • KnoxCLI
    • None
    • knox 0.12 & knox 0.13

    Description

      Knox WebHBase call returns a 404 not found when there is Special characters in a HBase row.
      hbase(main):005:0> scan 'emp1'
      ROW COLUMN+CELL
      1 column=pdata:name, timestamp=1502978418840, value=Raju
      1 column=prodata:designation, timestamp=1502978456530, value=manager
      k# column=pdata:name, timestamp=1503659457413, value=Raju1
      k#0 column=pdata:name, timestamp=1503660168378, value=Raju123
      3 row(s) in 0.0440 seconds
      Hbase rest is successful
      curl -ik -H "Accept: application/json" -X GET "http://wood2.openstacklocal:60080/emp1/k%23"
      HTTP/1.1 200 OK
      Content-Type: application/json
      Transfer-Encoding: chunked
      {"Row":[

      {"key":"ayM=","Cell":[ {"column":"cGRhdGE6bmFtZQ==","timestamp":1503659457413,"$":"UmFqdTE="}

      ]}]}
      Via Knox Failed
      curl -ik -H "Accept: application/json" -X GET -u guest:guest-password 'https://wood2.openstacklocal:8443/gateway/default/hbase/emp1/k%23'
      HTTP/1.1 404 Not Found
      Date: Fri, 25 Aug 2017 11:52:56 GMT
      Set-Cookie: JSESSIONID=1kn7ep689swxe1vq4mxrijuxfb;Path=/gateway/default;Secure;HttpOnly
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Set-Cookie: rememberMe=deleteMe; Path=/gateway/default; Max-Age=0; Expires=Thu, 24-Aug-2017 11:52:56 GMT
      Content-Type: text/plain
      Content-Length: 11
      Server: Jetty(9.2.15.v20160210)
      Not found
      17/08/25 11:55:11 ||b53e10bb-73d5-42cf-8784-3f757e5bfcbe|audit|WEBHBASE|guest|||access|uri|/gateway/default/hbase/emp1/k#|success|Response status: 404

      Attachments

        1. KNOX-1029.001.patch
          2 kB
          Sandeep More

        Issue Links

          Activity

            People

              smore Sandeep More
              RishiJain Rishi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: