Application crash when page number to high
Summary
If user input a page
number to high, the application crash
Steps to reproduce
Access a Scope
section and set the page
value to 99999999999999999999
What is the current bug behavior?
Internal error
Flask-SqlAlchemy
multiply page
and per_page
value to calculate the offset
value for the SQL query.
If this value is higher than a 64 bits
integer the SGBD raise an exception.
What is the expected correct behavior?
Should work
Relevant logs and/or screenshots
With psycopg
psycopg2.errors.NumericValueOutOfRange: bigint out of range
With sqlite
OverflowError: Python int too large to convert to SQLite INTEGER
Environment info
0.13