Ticket #1058 (closed defect: fixed)
Give 400 error (not 500) for invalid locale or package_form
Reported by: | dread | Owned by: | dread |
---|---|---|---|
Priority: | trivial | Milestone: | ckan-v1.4-sprint-4 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
Examples which prompt annoying exception emails:
http://ckan.net/locale?locale=ja Module ckan.i18n:21 in set_session_locale assert locale in _KNOWN_LOCALES
A bot has caused these:
http://ca.ckan.net/package/new?package_form=gov Module ckan.forms.registry:32 in get_fieldset raise ValueError('Could not find package_form name %r in those found: \n%r' % (package_form, [en.name for en in entrypoints])) ValueError: Could not find package_form name u'gov)' in those found: ['gov', 'standard', 'ca']
Change History
Note: See
TracTickets for help on using
tickets.
Fixed in cset:8e1817ab8d1c on default, ready for 1.4 release.