[ckan-changes] [ckan/ckan] c40c17: [#2037] Fix exception on resource creation

GitHub noreply at github.com
Tue Mar 3 22:56:02 UTC 2015


  Branch: refs/heads/release-v2.2.2
  Home:   https://github.com/ckan/ckan
  Commit: c40c171ce12de02f81a46446be50069f829ea0a7
      https://github.com/ckan/ckan/commit/c40c171ce12de02f81a46446be50069f829ea0a7
  Author: amercader <amercadero at gmail.com>
  Date:   2015-03-03 (Tue, 03 Mar 2015)

  Changed paths:
    M ckan/controllers/package.py

  Log Message:
  -----------
  [#2037] Fix exception on resource creation

The package controller was passing a dataset dict to the auth check for
`resource_create`, instead of a resource one (basically a `package_id`).


  Commit: e27d3786b7cecf57dcda7414b1b3e9463e3bfb1a
      https://github.com/ckan/ckan/commit/e27d3786b7cecf57dcda7414b1b3e9463e3bfb1a
  Author: amercader <amercadero at gmail.com>
  Date:   2015-03-03 (Tue, 03 Mar 2015)

  Changed paths:
    A ckan/new_tests/controllers/test_package.py
    M ckan/new_tests/helpers.py

  Log Message:
  -----------
  [#2037] Cherry-pick functional test for dataset creation

Otherwise the code for new resource creation on the controllers was not
tested.


Compare: https://github.com/ckan/ckan/compare/2666a0a6ff04...e27d3786b7ce


More information about the ckan-changes mailing list