Pita/etherpad-lite — Issue #301: /p/test:revs:0 kills etherpad
Author: booo
Created: 2011-12-26 01:29:54+00:00
State: open

If you request

http://127.0.0.1:9001/p/test

and then

http://127.0.0.1:9001/p/test:revs:0

the etherpad lite breaks. Reported by peter via irc.

[2011-12-26 02:28:13.581] [ERROR] console - TypeError: Cannot read property 'numToAttrib' of undefined
at Object.fromJsonable (/home/borgers/projects/padlite-working/node/utils/AttributePoolFactory.js:80:24)
at Object.callback (/home/borgers/projects/padlite-working/node/db/Pad.js:365:35)
at /home/borgers/projects/padlite-working/node_modules/ueberDB/CloneAndAtomicLayer.js:95:17
at /home/borgers/projects/padlite-working/node_modules/ueberDB/CacheAndBufferLayer.js:183:7
at [object Object].get (/home/borgers/projects/padlite-working/node_modules/ueberDB/dirty_db.js:45:3)
at [object Object].get (/home/borgers/projects/padlite-working/node_modules/ueberDB/CacheAndBufferLayer.js:156:20)
at [object Object].doOperation [as operatorFunction] (/home/borgers/projects/padlite-working/node_modules/ueberDB/CloneAndAtomicLayer.js:89:18)
at [object Object].emit (/home/borgers/projects/padlite-working/node_modules/ueberDB/node_modules/channels/channels.js:38:11)
at [object Object].get (/home/borgers/projects/padlite-working/node_modules/ueberDB/CloneAndAtomicLayer.js:62:17)
at [object Object]. (/home/borgers/projects/padlite-working/node/db/Pad.js:356:10)
[2011-12-26 02:28:13.581] [INFO] console - graceful shutdown...
[2011-12-26 02:28:13.581] [INFO] console - db sucessfully closed.