Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-LAB-HELP
-
Labels:None
Description
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'
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-lab-help
Hello. I just spotted this. I believe the web portal base-64 encodes the pdf file. This is to facilitate transferring binary content through text protocols. If you use the web portal to download it, it will automatically decode it back to the original and it will be fine.
However if you download it using CDMI I believe you would need to base-64 decode it yourself.