Upload to CDN does not set correct content-type for tar.gz files

Bug #1427889 reported by Alice Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
High
Alice Chen

Bug Description

Uploading *.tar.gz files to the CDN sets the incorrect content-type. This is causing the filename to be mangled on download.

Revision history for this message
Alice Chen (alchen) wrote :

Reviewed: https://review.trafodion.org/1223
Committed: https://github.com/trafodion/infra/commit/354f65afbd13154bb348f2903321862f3be9a8d9
Submitter: Trafodion Jenkins
Branch: master

commit 3d797939461a5c53380b14ee79e5aa188e28e7ba
Author: Alice Chen <email address hidden>

Changed the algorithm so that files are individually uploaded.
This way they can be processed correctly. Apparently, Swift
also has a bug where you specifying the header content-type is
ignored during upload. To get around that problem we run a POST
command after uploading to make sure the headers we want are set.
Also changed /usr/local/binuseObjectStorage.sh to not be world
readable/writeable since we have user information in that file.
Due to that change jenkins needs to be given sudo access to that file.

Change-Id: If6ae68f306f28acb7c0d20f2201bfb8727dc26f2

Changed in trafodion:
assignee: nobody → Alice Chen (alchen)
status: New → Fix Committed
Alice Chen (alchen)
Changed in trafodion:
status: Fix Committed → Fix Released
Alice Chen (alchen)
Changed in trafodion:
milestone: none → r1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.