Opened 12 years ago
Closed 12 years ago
#22143 closed Uncategorized (duplicate)
Default bounds checking for Integer fields.
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | yes | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description
I think that informing people that certain input values are safe is not enough.
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.IntegerField
When you create a ModelForm with minimal code, its integer fields do not check if the input violates the boundaries.
So when the end-user inputs large integer, he just gets Server Error (500)
Exception DataError: *int out of range. is generated.
Change History (4)
comment:1 by , 12 years ago
| Has patch: | set |
|---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
| Needs tests: | set |
|---|---|
| Patch needs improvement: | set |
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/2337/files#diff-0