We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A user can crash ABS when it it uses the items API and uses a non-integer limit:
/api/libraries/${libraryId}/items?limit=${limit}
crashes for example when limit is 6.5
6.5
It should return 400 bad request instead of crashing
See above
v2.13.4
Docker
Linux
None
[2024-09-26 10:31:25.191] FATAL: [Server] Unhandled rejection: SequelizeDatabaseError: SQLITE_MISMATCH: datatype mismatch, promise: Promise { <rejected> Error at Database.<anonymous> (/node_modules/sequelize/lib/dialects/sqlite/query.js:185:27) at /node_modules/sequelize/lib/dialects/sqlite/query.js:183:50 at new Promise (<anonymous>) at Query.run (/node_modules/sequelize/lib/dialects/sqlite/query.js:183:12) at /node_modules/sequelize/lib/sequelize.js:315:28 at async SQLiteQueryInterface.select (/node_modules/sequelize/lib/dialects/abstract/query-interface.js:407:12) at async book.findAll (/node_modules/sequelize/lib/model.js:1140:21) at async Promise.all (index 1) at async book.findAndCountAll (/node_modules/sequelize/lib/model.js:1322:27) at async Object.getFilteredLibraryItems (/server/utils/queries/libraryItemsBookFilters.js:558:36) { name: 'SequelizeDatabaseError', parent: [Error: SQLITE_MISMATCH: datatype mismatch] { errno: 20, code: 'SQLITE_MISMATCH', ...[query cut]...
No response
The text was updated successfully, but these errors were encountered:
Fix:API /libraries/:library/items validate limit and page are positiv…
567a9a4
…e integers #3459
Fixed in v2.14.0.
Sorry, something went wrong.
No branches or pull requests
What happened?
A user can crash ABS when it it uses the items API and uses a non-integer limit:
crashes for example when limit is
6.5
What did you expect to happen?
It should return 400 bad request instead of crashing
Steps to reproduce the issue
See above
Audiobookshelf version
v2.13.4
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
No response
The text was updated successfully, but these errors were encountered: