[Fiware-lab-help] [Cloud] [Spain] Download corrupted pdf file using the CDMI API

Fi-ware ULPGC fiware at ulpgc.es
Fri Oct 31 10:12:05 CET 2014


Web Browser: Firefox 33.0
Operating System: OSX version 10.9.5
User id: cloudtestulpgc
Tenant: 00000000000000000000000000006443

Description
When a pdf file is uploaded to object storage using the web, if the user
downloads it from the web, the file is ok but if it is downloaded with the
CDMI API, the resulting file is corrupted.

How to replicate: Upload a pdf file, in this case we use the
DnDBasicRules(PrinterFriendly).pdf  file downloaded previously from
http://dnd.wizards.com/articles/features/basicrules?x=dnd/basicrules.

 In this case with rename the file to “DnD Basic rules”. Download the file
from the web,  and verify that it can be opened it normally. Now, try to
get it using the CDMI API and verify that the file is corrupt.

The command used as it is described in the documentation is belows.

curl -X GET \
    -H 'X-Auth-Token: 9cc10bfffade7a9fcb4bb08e1169da6f' \
http://130.206.82.9:8080/cdmi/AUTH_00000000000000000000000000006443/TestContainer/DnD%20Basic%20rules
\
     --output 'DnD_rules.pdf'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20141031/34082333/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Download corrupted pdf file using the CDMI API.png
Type: image/png
Size: 132471 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20141031/34082333/attachment.png>


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