Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Cloud
-
HD-Enabler:Object Storage
Description
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
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: joanlofe@gmail.com]
According to the documentation on http://docs.openstack.org/kilo/config-reference/content/object-storage-tempurl.html it seems that this feature was introduced in the Kilo release.
Are you sure that your Swift installation is running Kilo? In the Fiware labs, they are currently running Juno release. An update to Kilo release is planned for the near future for some of the regions.