[ckan-dev] Change package owner org with API

Denis Zgonjanin deniszgonjanin at gmail.com
Tue Jun 9 14:11:07 UTC 2015


I can confirm this happens on master. You should probably file an issue

- Denis

On Tue, Jun 9, 2015 at 7:09 AM, Funquist Tomas <tomas.funquist at smhi.se>
wrote:

>  Hello!
>
> We are trying to change the owner organization for some packages. We use
> the API and the package_owner_org_update method. When we execute eg.
>
>
>
> curl -X POST -H 'Authorization: API_KEY' -d @ckan.json
> http://localhost:51545/api/3/action/package_owner_org_update
>
>
>
> we get an internal server error.
>
> The file ckan.json contains
>
> {
>
>   "id" : "00541f9e-80f2-44a1-9195-fb05f1d57281",
>
>   "organization_id" : "1d7656c9-9dd5-47b8-a52e-58fb3a84621e"
>
> }
>
> All we get in the server log is
>
>
>
> Error - <type 'exceptions.AssertionError'>: No revision is currently set
> for this Session
>
>
>
> Can someone help us?
>
>
>
> Regards
>
> Tomas
>
>
>
> *Tomas Funquist*
>
> Systemutvecklare / system developer
>
>
>
> *SMHI* / *Swedish Meteorological and Hydrological Institute*
>
> ITd
>
> SE - 601 76 NORRKÖPING
>
> www.smhi.se
> <http://redir.aspx?C=e230b29b05e240c8bf09c562e1077314&URL=http%3a%2f%2fwww.smhi.se%2f>
>
>
>
> E-post / Email: tomas.funquist at smhi.se
>
> Tel vx/ Phone: +46 (0)11 495 80 00
>
> Mobiltelefon / Mobile phone: + 46 11 495 8625
>
> Besöksadress / Street address: Folkborgsvägen 17
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150609/cd419c47/attachment-0003.html>


More information about the ckan-dev mailing list