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

GitHub noreply at github.com
Fri Dec 12 16:00:28 UTC 2014


  Branch: refs/heads/2142-fix-crash-on-creating-dataset-in-web-ui
  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.




More information about the ckan-changes mailing list