etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

API: listAuthorsOfPad call has strange separator for pad ('%')

Open disy-mk opened this issue 13 years ago • 3 comments

Hi,

trying to create a nice management interface for pads, authors, users etc, I'm playing with the API.

Requesting the authors for a pad, I get:

[2012-12-18 13:10:50.104] [INFO] API - REQUEST, v1.1:listAuthorsOfPad, {"padID":"g.eOYZzhzVlVgGgBaG$606444133","apikey":"###APIKEY###"}
[2012-12-18 13:10:50.104] [INFO] API - RESPONSE, listAuthorsOfPad, {"code":0,"message":"ok","data":{"authorIDs":[]}}
[2012-12-18 13:10:50.105] [INFO] http - 200, GET /api/1.1/listAuthorsOfPad?padID=g.eOYZzhzVlVgGgBaG%24606444133&apikey=###APIKEY###

What seems strange to me is that a '%' is used as separator here instead of a '$' to append the pad to a group.

disy-mk avatar Dec 18 '12 12:12 disy-mk

the % is probably accompanied by some two-digit hex code, which is likely to be the url-encoded representation of the dollar sign...

marcelklehr avatar Dec 18 '12 12:12 marcelklehr

@marcelklehr: resolved my issue with the authors - was false alarm (called the wrong pad) -> changed the issue title and modified my post


Regarding the '%': the obove output is from the log-file; but when is call the API directly via browser, i have to use % instead of '$', otherwise the pad will not be found.

disy-mk avatar Dec 18 '12 13:12 disy-mk

way tooo strange... cannot completely reproduce that anymore; have another related issue right now, but might be related to my scripts... closing that now.

disy-mk avatar Dec 18 '12 13:12 disy-mk