[Cyberduck-trac] [Cyberduck] #8904: Doesn't show content of folder with ampersand in name

Cyberduck trac at trac.cyberduck.io
Thu Jul 2 14:37:07 UTC 2015


#8904: Doesn't show content of folder with ampersand in name
------------------------------------+-------------------------
 Reporter:  jhmk                    |         Owner:  dkocher
     Type:  defect                  |        Status:  assigned
 Priority:  normal                  |     Milestone:  4.8
Component:  s3                      |       Version:  4.7
 Severity:  normal                  |    Resolution:
 Keywords:  S3, special characters  |  Architecture:  Intel
 Platform:                          |
------------------------------------+-------------------------

Comment (by dkocher):

 * Sample response from `eu-central` for `GET /?max-
 keys=1000&prefix=&/&delimiter=/ HTTP/1.1[\r][\n]`

 {{{
 <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name
 >cyberduck-
 eucentral</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><CommonPrefixes><Prefix>&amp;/</Prefix></CommonPrefixes></ListBucketResult>[\r][\n]
 }}}

 Compared with a properly escaped request

  * Sample response from `us-east-1` for `GET /?max-
 keys=1000&prefix=%26%2F&delimiter=%2F HTTP/1.1[\r][\n]`

 {{{
 <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name
 >cyberduck-
 useast</Name><Prefix>&amp;/</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><Contents><Key>&amp;/</Key><LastModified>2015-07-02T14:17:29.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>9e566b20db6d815be833c75619604c94f421d600420bba9d92214ad250dfdbe1</ID><DisplayName>_</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>&amp;/f</Key><LastModified>2015-07-02T14:17:32.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>9e566b20db6d815be833c75619604c94f421d600420bba9d92214ad250dfdbe1</ID><DisplayName>_</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>[\r][\n]
 }}}

 The error is indeed that when using AWS4 authorization the request line is
 rewritten and not properly URI encoded.

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


More information about the Cyberduck-trac mailing list