Ticket #329 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Bad dates cause exception on Gov form

Reported by: dread Owned by: rgrp
Priority: blocker Milestone: v1.1
Component: ckan Keywords:
Cc: Repository:
Theme:

Description (last modified by dread) (diff)

Reproduction

Using the government form, create a new package with name 'test' and date released of '23/5/0210'. The result is a 500 error and 'Server Error' message.

Affects all versions of CKAN.

Why it's happening

The dates module is raising an exception on the invalid date when saving the date, which is not being caught. The exception should have been raised only during the earlier 'validation' step and that would be caught.

Change History

comment:1 Changed 4 years ago by dread

  • Description modified (diff)

comment:2 Changed 4 years ago by dread

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

Fixed in cset:d264f9d57477 and cset:07701ef4085e

Note: See TracTickets for help on using tickets.