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
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
108d 9h 30m | 1 | John M. Kennedy (Inactive) | 16/Feb/15 7:44 PM | |||||
|
57d 17h 37m | 1 | Manuel Escriche | 15/Apr/15 2:22 PM |
Fix Version/s | 2021 [ 12600 ] |
Summary | [Fiware-lab-help] [Cloud] [Spain] Download corrupted pdf file using the CDMI API | FIWARE.Request.Lab.Download corrupted pdf file using the CDMI API. |
HD-Enabler | Object Storage [ 10863 ] |
HD-Enabler | Object Storage [ 10863 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Assignee | Alex Glikson [ glikson ] | John M. Kennedy [ jmk ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Henar Muñoz [ henar ] | Alex Glikson [ glikson ] |
Assignee | John Kennedy [ jkennedyie ] | Henar Muñoz [ henar ] |
Workflow | FW eRequest Workflow [ 18177 ] | FW extRequest Workflow-II [ 20211 ] |
Issue Type | eRequest [ 10101 ] | extRequest [ 10104 ] |
FI-WARE Environment | FI-LAB [ 10100 ] |
Assignee | Spain Node Support Team [ spain.node ] | John Kennedy [ jkennedyie ] |
Component/s | FIWARE-LAB-HELP [ 10279 ] |
Field | Original Value | New Value |
---|---|---|
Assignee | Spain Node Support Team [ spain.node ] |
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.