[ckan-changes] [ckan/ckan] e25e86: [#1488] Make get_*_object helper functions more ro...
GitHub
noreply at github.com
Mon Feb 3 11:41:42 UTC 2014
Branch: refs/heads/1488-more-robust-get-object-in-auth
Home: https://github.com/ckan/ckan
Commit: e25e86479c0536c3e326e3a7b723455503925d3a
https://github.com/ckan/ckan/commit/e25e86479c0536c3e326e3a7b723455503925d3a
Author: amercader <amercadero at gmail.com>
Date: 2014-02-03 (Mon, 03 Feb 2014)
Changed paths:
M ckan/logic/auth/__init__.py
M ckan/new_tests/logic/auth/__init__.py
Log Message:
-----------
[#1488] Make get_*_object helper functions more robust
When functions like `get_resource_object` got an empty id (eg because of
a bug higher up in the logic layer) they returned a random object (the
most recent one on the DB), causing rally hard to debug bugs.
The functions now raise a ValidationError if an id is not provided.
More information about the ckan-changes
mailing list