[ckan-dev] CkanClient file upload & CKAN 2.2

David Raznick david.raznick at okfn.org
Mon Jan 27 09:46:50 UTC 2014


Hello

As far as I am aware the old filestore api has not been changed and
should work still in 2.2 (or that was the intention).  This should be
fixed before the release if that is the case.   Could you give more
details or logs on the breakage?

Nonethess, sadly, the storage api endpoint was never API versioned and
the CKANclient use of it was always basically a hack (It was just
emulating what happened on the frontend).

David

On 22 January 2014 19:14, Stéphane Guidoin <stephane at opennorth.ca> wrote:
> Hello,
>
> I have a script based on CkanClient that I use to upload files.
>
> I've upgraded from CKAN 2.0.x to 2.2 and the file upload seem to be broken.
> Based on the online documentation, it seems that the filestore API has
> changed over v2.2 (http://docs.ckan.org/en/latest/filestore.html): now we
> directly have to send the metadata (including the package to assign it) with
> the file as a multipart while previously it had to be uploaded and then
> assign it.
>
> I could change the CkanClient in order to support that BUT:
> - Does the new file upload (resource_create and resource_upload) exposes a
> REST interface following the same schema as the one currently used by
> CkanClient
> - Is there a way to know about the CKAN version from the API? Ideally, the
> Ckanclient should be able to support both behaviours based on CKAN.
>
> (That being said, it's a pity that the behaviour of the API was changed and
> the API version remained the same.)
>
> Stéphane
>
>
> _______________________________________________
> 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
>



More information about the ckan-dev mailing list