[Fiware-lab-help] Temp url access with object storage

jose antonio lorenzo joanlofe at gmail.com
Wed Nov 18 19:37:38 CET 2015


Hi:

I am trying to use the temp url feature in Swift object storage. The use
case is being able to generate public urls for picture files so that they
can be shown in my application web page (using html img tag). I've managed
to upload and download files using curl and my auth token, following the
instructions in
http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Object_Storage_-_User_and_Programmers_Guide.


In order to use temp url feature I've followed the guide in
http://docs.openstack.org/kilo/config-reference/content/object-storage-tempurl.html.
I've done the following:

   1. I've generate the X-Account-Meta-Temp-URL-Key using the command swift
   post -m "X-Account-Meta-Temp-URL-Key:*b3968d0207b54ece87cccc06515a89d4".*
   2. I've verified that the temp url key has been successfully saved
using swift
   stat command.
   3. I've generated the temp file url using the tool swift-temp-url. This
   tool gives an url with all the parameters needed (temp_url_sig and
   temp_url_expires).
   4. I've copied the url obtained in the previous step to my browser and
   tried to retrieved the file, obtaining a message telling that I am not
   authorized. The same happens using curl.

What am I doing wrong? I really need to get this feature working in order
to be able to feed my application with pictures.

Thank you very much,

Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20151118/152b2cce/attachment.html>


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy