[ckan-changes] [ckan/ckan] caa0b7: [#2142] Fix crash on creating datasets in the web ...

GitHub noreply at github.com
Fri Dec 12 17:18:16 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: caa0b795a322c3b18f0d5a0650f0c4e58f923403
      https://github.com/ckan/ckan/commit/caa0b795a322c3b18f0d5a0650f0c4e58f923403
  Author: Sean Hammond <git at seanh.cc>
  Date:   2014-12-12 (Fri, 12 Dec 2014)

  Changed paths:
    M ckan/controllers/package.py

  Log Message:
  -----------
  [#2142] Fix crash on creating datasets in the web UI

Try to create any dataset in the web UI and after submitting the first
form it crashes with logic.NotFound.

The package controller is passing a package dict to the
resource_create() auth function, which is surely wrong.

Change it to pass a dict with just the "package_id" for the (not created
yet) new resource instead, this seems to be all the resource_create()
auth function needs.


  Commit: cf9407cc5b014850e27f03b5f098726c6025cafd
      https://github.com/ckan/ckan/commit/cf9407cc5b014850e27f03b5f098726c6025cafd
  Author: Sean Hammond <git at seanh.cc>
  Date:   2014-12-12 (Fri, 12 Dec 2014)

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

  Log Message:
  -----------
  [#2142] Test package controller with normal user

Test the package controller with a normal user, not a sysadmin.
Testing using a sysadmin was hiding an auth-related crash.


  Commit: e8bcc8f8de9950d5474eea8ce43ef551de6e2bbb
      https://github.com/ckan/ckan/commit/e8bcc8f8de9950d5474eea8ce43ef551de6e2bbb
  Author: Sean Hammond <git at seanh.cc>
  Date:   2014-12-12 (Fri, 12 Dec 2014)

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

  Log Message:
  -----------
  [#2142] Fix a function name


Compare: https://github.com/ckan/ckan/compare/5aef5ed178f8...e8bcc8f8de99


More information about the ckan-changes mailing list