Opened 9 years ago

Closed 9 years ago

#2426 closed defect (duplicate)

validators.isValidANSIDate("2006-02-31",_) does not rise ValidationError

Reported by: m465@… Owned by: adrian
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: UI/UX:

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 Changed 9 years ago by Robert Myers <myer0052@…>

This appears to have been fixed in ticket #2674

comment:2 Changed 9 years ago by Gary Wilson <gary.wilson@…>

  • Resolution set to duplicate
  • Status changed from new to closed

marking this a duplicate of #2674, since that ticket was already fixed :)

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