1

Closed

[CDMI proxy] There is not support for changing permissions of a blob

description

Continues from issue #113.
The second point is: how can I upload an application zip as a blob with public access?

This is my attempt:

upload using a non-CDMI content type

curl -v -u Admin:secret --digest -X PUT \
--upload-file f.txt \
http://architravecdmiproxy.cloudapp.net:2365/container23/f.txt

change permissions

curl -v -u Admin:secret --digest -X PUT \
--header 'Content-Type: application/cdmi-object' \
--header 'X-CDMI-Specification-Version: 1.0.1' \
--data '{"metadata" : { "cdmi_acl" : { "Anonymous" : "r", "Admin" : "rwd" }}}' \
http://architravecdmiproxy.cloudapp.net:2365/container23/f.txt?metadata

And the server returns:
Unsupported request: <PUT /container23/f.txt?metadata HTTP/1.1>

The other possibility is to upload a binary object with CDMI metadata at the same time, but I don't know how to do it. The documentation could be extended in this regard (http://resources.venus-c.eu/cdmiproxy/docs/configuration.html#authorization). I would be happy with the curl command or else the complete HTTP request.
Closed Jul 10, 2012 at 9:59 AM by ilja
Outdated, closing.

comments

ilja wrote Apr 8, 2012 at 5:49 PM

Currently query parameters are not supported, i.e. ?... syntax cannot be used. Please, use the request, but with http://architravecdmiproxy.cloudapp.net:2365/container23/f.txt

If the object is already created, its metadata will be updated.