adaltas / node-hbase

Asynchronous HBase client for NodeJs using REST

Home Page:https://hbase.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong url.encode

E88 opened this issue · comments

Trying to get all columns from ein row

get(table,key,colums, {start:111,end:222})

url.encode(table, key, null, 111, 222) results in url :

/table/key/111,222

The empty colums ignored in the url -> Server response "invalid path"

The url should be with empty path part:

/table/key//111,222

PATCH:
node-hbase / src / utils.coffee : 41

if columnPath
newpath += "/#{columnPath}"

Changed to:

newpath += "/"
if columnPath
newpath += "#{columnPath}"

Always enter "/" for empty columns.

Old issue, closing.