Opened 11 years ago

Closed 11 years ago

#22143 closed Uncategorized (duplicate)

Default bounds checking for Integer fields.

Reported by: dimyur27@… 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 anonymous, 11 years ago

Has patch: set

comment:3 by gregchapple, 11 years ago

Needs tests: set
Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:4 by Tim Graham, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #12030

Note: See TracTickets for help on using tickets.
Back to Top