[Fiware-tech-help] [Object Storage GE - FIWARE Implementation] Temp url access with object storage

joanlofe at gmail.com joanlofe at gmail.com
Thu Nov 19 12:07:13 CET 2015


Jose Antonio sent a message using the contact form at
http://catalogue.fiware.org/.

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:

      I've generate the X-Account-Meta-Temp-URL-Key using the command swift
post -m "X-Account-Meta-Temp-URL-Key:b3968d0207b54ece87cccc06515a89d4".
      I've verified that the temp url key has been successfully saved using
swift stat command.
      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).
      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




More information about the Fiware-tech-help mailing list

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