DateFieldMarshaller causes internal server error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
Edwin Grubbs |
Bug Description
The DateFieldMarshaller raises a DateError, which causes an Internal Server Error response, but it should raise a ValueError, which will cause a Bad Request response.
Traceback (most recent call last):
File "/srv/staging.
result = publication.
File "/srv/staging.
return mapply(ob, request.
File "/srv/staging.
return debug_call(object, args)
File "/srv/staging.
return object(*args)
File "/srv/staging.
result = self.do_POST()
File "/srv/staging.
return self.handleCust
File "/srv/staging.
return operation()
File "/srv/staging.
values, errors = self.validate()
File "/srv/staging.
value = marshaller.
File "/srv/staging.
return self._marshall_
File "/srv/staging.
return self._marshall_
File "/srv/staging.
value = DateTimeParser(
File "/srv/staging.
raise DateError(arg, yr, mo, dy)
DateError: (u'2008-10-33', 2008, 10, 33)
Changed in launchpad-registry: | |
assignee: | nobody → edwin-grubbs |
status: | New → In Progress |
milestone: | none → 2.1.10 |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
Revision 7109