Changes between Version 4 and Version 5 of Ticket #12426, comment 2
- Timestamp:
- Apr 8, 2016, 3:18:27 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12426, comment 2
v4 v5 7 7 In cases for which the user does not directly enter a value, such as the page number on search or query results, I'm more convinced we should raise an `HTTPBadRequest` on bad input: [13a4e04a/rjollos.git#file0]. In these cases the bad input would only occur due to bots or the user editing the URL. 8 8 9 Also at issue is how to require that a request argument is provided. Raising `HTTPBadRequest` when default was not provided to `getint` or `getbool` seemedlike an API inconsistency. Therefore I added a `require` method to `_RequestArgs` instead: [ab37fe54/rjollos.git].9 Also at issue is how to require that a request argument is provided. Raising `HTTPBadRequest` when default is not provided to `getint` or `getbool` seems like an API inconsistency. Therefore I added a `require` method to `_RequestArgs` instead: [ab37fe54/rjollos.git].