Pita/etherpad-lite — Issue #435: Unable to open pad created via api
Author: DerKobe
Created: 2012-02-10 09:11:44+00:00
State: open

I have created a pad via the api. Everything looks good, except that it won't work. Even the cookie is in place and I also tried it with session check turned off. All I get is this:

Cannot GET /g/NFOShuJeIcDXFikU$aa03a574f13f9cdd4b49032a671df0b1

access.log
--------------
[2012-02-09 19:30:53.552] [INFO] API - REQUEST, createGroup, {"apikey":"APIKEY"}
[2012-02-09 19:30:53.552] [INFO] API - RESPONSE, createGroup, {"code":0,"message":"ok","data":{"groupID":"g.NFOShuJeIcDXFikU"}}
[2012-02-09 19:30:53.556] [INFO] http - 200, GET /api/1/createGroup?apikey=APIKEY
[2012-02-09 19:30:53.557] [INFO] API - REQUEST, createGroupPad, {"groupID":"g.NFOShuJeIcDXFikU","padName":"aa03a574f13f9cdd4b49032a671df0b1","apikey":"APIKEY"}
[2012-02-09 19:30:53.558] [INFO] API - RESPONSE, createGroupPad, {"code":0,"message":"ok","data":{"padID":"g.NFOShuJeIcDXFikU$aa03a574f13f9cdd4b49032a671df0b1"}}
[2012-02-09 19:30:53.558] [INFO] http - 200, GET /api/1/createGroupPad?groupID=g.NFOShuJeIcDXFikU&padName=aa03a574f13f9cdd4b49032a671df0b1&apikey=APIKEY
[2012-02-09 19:30:53.560] [INFO] API - REQUEST, createAuthor, {"name":"","apikey":"APIKEY"}
[2012-02-09 19:30:53.560] [INFO] API - RESPONSE, createAuthor, {"code":0,"message":"ok","data":{"authorID":"a.uNg5UkcHUdoCdWZK"}}
[2012-02-09 19:30:53.560] [INFO] http - 200, GET /api/1/createAuthor?name=&apikey=APIKEY
[2012-02-09 19:30:53.561] [INFO] API - REQUEST, createSession, {"groupID":"g.NFOShuJeIcDXFikU","authorID":"a.uNg5UkcHUdoCdWZK","validUntil":"1328815853","apikey":"APIKEY"}
[2012-02-09 19:30:53.563] [INFO] API - RESPONSE, createSession, {"code":0,"message":"ok","data":{"sessionID":"s.7ONgLpluQtUXTpVg"}}
[2012-02-09 19:30:53.571] [INFO] http - 200, GET /api/1/createSession?groupID=g.NFOShuJeIcDXFikU&authorID=a.uNg5UkcHUdoCdWZK&validUntil=1328815853&apikey=APIKEY
[2012-02-09 19:30:53.659] [INFO] ueberDB - Flushed 7 values
[2012-02-09 19:30:55.551] [INFO] http - 404, GET /g/NFOShuJeIcDXFikU$aa03a574f13f9cdd4b49032a671df0b1

Database content
------------------------
1) "pad:g.NFOShuJeIcDXFikU$aa03a574f13f9cdd4b49032a671df0b1:revs:0"
2) "group:g.NFOShuJeIcDXFikU"
3) "group2sessions:g.NFOShuJeIcDXFikU"
4) "user_counter:aa03a574f13f9cdd4b49032a671df0b1"
5) "pad:g.NFOShuJeIcDXFikU$aa03a574f13f9cdd4b49032a671df0b1"
6) "author2sessions:a.uNg5UkcHUdoCdWZK"
7) "session:s.7ONgLpluQtUXTpVg"
8) "globalAuthor:a.uNg5UkcHUdoCdWZK"