nextcloud/apps/files_external
Christopher T. Johnson 599ab7a802 Fix Signiture Does Not Match when mounting Amazon S3 external storage
For some reason the aws-sdk-php package does not caclulate the
signiture correctly when accessing an object in a bucket with a name of
'.'.

When we are at the top of a S3 bucket there is a need(?) to have a directory
name.  Per standard Unix the name picked was '.' (dot or period).  This
choice exercises the aws-sdk bug.

This fix is to add a field to the method to store the name to use instead of
'.' which at this point is hard coded to '<root>'.  We also add a private
function 'cleanKey()' which will test for the '.' name and replace it with
the variable.  Finally all calls to manipulate objects where the path is
not obviously not '.' are processed through cleanKey().

An example where we don't process through clean key would be
	'Key' => $path.'/',

Use correct relationship operator

Per feed back use === instead of ==

use '/' instead of '<root>'
2014-07-08 10:16:48 +02:00
..
3rdparty remove rackspace opencloud libs from files_external 3rdparty 2014-06-25 14:54:43 +02:00
ajax When changing the mountpoint of an external storage, ensure the old one is removed 2014-07-07 15:40:01 +02:00
appinfo add ocsids to info.xml 2014-07-07 17:11:50 +02:00
css fix typo - Backups -> Backends 2014-06-16 11:33:51 +02:00
js When changing the mountpoint of an external storage, ensure the old one is removed 2014-07-07 15:40:01 +02:00
l10n [tx-robot] updated from transifex 2014-07-08 01:55:17 -04:00
lib Fix Signiture Does Not Match when mounting Amazon S3 external storage 2014-07-08 10:16:48 +02:00
templates When changing the mountpoint of an external storage, ensure the old one is removed 2014-07-07 15:40:01 +02:00
tests Merge pull request #8383 from owncloud/object_storage 2014-06-27 16:53:03 +02:00
list.php Added external storage list in files app 2014-06-06 15:06:26 +02:00
personal.php Allow admins to disable certain external storages for users 2014-02-26 15:02:41 +01:00
settings.php Allow admins to disable certain external storages for users 2014-02-26 15:02:41 +01:00