Opened 18 years ago
Closed 18 years ago
#2426 closed defect (duplicate)
validators.isValidANSIDate("2006-02-31",_) does not rise ValidationError
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Validators | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Built-in re-based validator does not catch invalid day-month combinations. Subsequent call to do_html2python force the value to None raising exception on the database level if the field is NOT NULL. Of cause one can add trivial custom validator for this check, but the better place is 'isValidANSIDate', because "2006-02-31" is really not a valid ANSI date.
Change History (2)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
marking this a duplicate of #2674, since that ticket was already fixed :)
Note:
See TracTickets
for help on using tickets.
This appears to have been fixed in ticket #2674