Upload to CDN does not set correct content-type for tar.gz files
Bug #1427889 reported by
Alice Chen
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.
Changed in trafodion: | |
status: | Fix Committed → Fix Released |
Changed in trafodion: | |
milestone: | none → r1.0 |
To post a comment you must log in.
Reviewed: https:/ /review. trafodion. org/1223 /github. com/trafodion/ infra/commit/ 354f65afbd13154 bb348f290332186 2f3be9a8d9
Committed: https:/
Submitter: Trafodion Jenkins
Branch: master
commit 3d797939461a5c5 3380b14ee79e5aa 188e28e7ba
Author: Alice Chen <email address hidden>
Changed the algorithm so that files are individually uploaded. binuseObjectSto rage.sh to not be world
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/
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: If6ae68f306f28a cb7c0d20f2201bf b8727dc26f2