[Cyberduck-trac] [Cyberduck] #8518: Rackspace uploads ignore default metadata headers specified in user.config

Cyberduck trac at trac.cyberduck.io
Thu Jan 22 16:55:52 UTC 2015


#8518: Rackspace uploads ignore default metadata headers specified in user.config
---------------------------+-----------------------
    Reporter:  Olga        |      Owner:  dkocher
        Type:  defect      |     Status:  new
    Priority:  normal      |  Milestone:
   Component:  cloudfiles  |    Version:  4.6.3
    Severity:  normal      |   Keywords:
Architecture:              |   Platform:  Windows 7
---------------------------+-----------------------
 I'm uploading files to a Rackspace Cloud Files container, and need to add
 the `Access-Control-Allow-Origin: *` header to all files. From the docs --

 https://trac.cyberduck.io/wiki/help/en/howto/cloudfiles#Defaultmetadata

 https://trac.cyberduck.io/wiki/help/en/howto/preferences#Hiddenconfigurationoptions

 I understand that I can set the default metadata headers for uploads in
 user.config.

 \\
 I added the following to `<settings>` in
 C:\Users\<name>\AppData\Roaming\Cyberduck\Cyberduck.exe_Url_<...>\4.6.1.16121\user.config:
 {{{
 <setting name="cf.metadata.default" value="Access-Control-Allow-Origin=*"
 />
 }}}
 But when I upload the files to Rackspace, Cyberduck uploads them without
 this header.

 Fiddler shows that Cyberduck PUTs the file without the custom header, and
 doesn't additionally POST the header:
 {{{
 PUT https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_.../container-
 name/myfile.htm HTTP/1.1
 Content-Type: text/html
 X-Auth-Token: ...
 Content-Length: 10864
 Host: storage101.ord1.clouddrive.com
 Connection: Keep-Alive
 User-Agent: Cyberduck/4.6.3 (16490) (Windows 7/6.1) (x86)
 Accept-Encoding: gzip,deflate

 <!DOCTYPE html>
 ...
 }}}

 \\
 If I PUT the file using cURL, the header gets added correctly:
 {{{
 > curl -i -X PUT -T myfile.htm -H "X-Auth-Token: ..." -H "Access-Control-
 Allow-Origin: *" https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_
 .../container-name/myfile.htm
 HTTP/1.1 201 Created

 > curl -i -X HEAD -H "X-Auth-Token: ..."
 https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_.../container-
 name/myfile.htm
 HTTP/1.1 200 OK
 ...
 Access-Control-Allow-Origin: *
 Content-Type: text/html
 ...
 }}}

-- 
Ticket URL: <https://trac.cyberduck.io/ticket/8518>
Cyberduck <http://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows


More information about the Cyberduck-trac mailing list