Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pad names containing a '?' cause a crash (MySQL only) #41

Closed
0ip opened this issue Jul 26, 2011 · 1 comment
Closed

Pad names containing a '?' cause a crash (MySQL only) #41

0ip opened this issue Jul 26, 2011 · 1 comment

Comments

@0ip
Copy link
Member

0ip commented Jul 26, 2011

If a pad name contains a ? in the name, the wholes server crashes. SQLite isn't affected.
Also, if a name begins with a ?, the problem doesn't appear.

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: too few parameters given
at /home/ether/etherpad-lite/node_modules/ueberDB/node_modules/mysql/lib/mysql/client.js:160:13
at String.replace (native)
at Client.format (/home/ether/etherpad-lite/node_modules/ueberDB/node_modules/mysql/lib/mysql/client.js:158:13)
at Client.query (/home/ether/etherpad-lite/node_modules/ueberDB/node_modules/mysql/lib/mysql/client.js:92:16)
at [object Object].get (/home/ether/etherpad-lite/node_modules/ueberDB/mysql_db.js:72:11)
at [object Object].get (/home/ether/etherpad-lite/node_modules/ueberDB/dbWrapper.js:143:20)
at [object Object].get (/home/ether/etherpad-lite/node_modules/ueberDB/ueberDB.js:65:11)
at [object Object]. (/home/ether/etherpad-lite/node/Models/Pad.js:306:9)
at [object Object].init (/home/ether/etherpad-lite/node_modules/joose/lib/Task/Joose/Core.js:786:32)
at Object.getPad (/home/ether/etherpad-lite/node/PadManager.js:48:9)

@Pita
Copy link
Contributor

Pita commented Jul 26, 2011

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants