You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API Platform version(s) affected: 3.3.2 / 3.2.21 / 3.1.28
NumericFilter does not sanitize values against SQL types limits, so for example filtered on integer type field with value out of limit ends with low level exception:
SQLSTATE[22003]: Numeric value out of range: 7 ERROR: value "2147483648" is out of range for type integer
Doesn't that differ between DBMS? On one hand we could just catch the sql exception, on the other I assume that it'd be better to never hit this part of the code and use a Parameter assertion to avoid this:
API Platform version(s) affected: 3.3.2 / 3.2.21 / 3.1.28
NumericFilter
does not sanitize values against SQL types limits, so for example filtered oninteger
type field with value out of limit ends with low level exception:I had to use decorator to handle this, in short:
I can possibly provide PR for
NumericFilter
if it should be fixed for that.The text was updated successfully, but these errors were encountered: