-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple S3 configurations w/same access keys #7543
Comments
@PVince81 What do you think? |
@colinc do you want to have a try fixing it and send a PR ? |
@PVince81 No problem. Do I need to fill out the contributor agreement first? I wasn't sure if this was considered "a module" (since it's in the app directory) or part of core (since it's in the core repo). |
@colinc no worries. You can either:
or
|
@colinc did you manage to make it work ? |
I'm experiencing the same issue. Did anyone figured out what's wrong? |
Please excuse my unfamiliarity with collaboration here. I created a pull request after discovering what was causing this issue here: I may have done that prematurely and commented here instead. If the "id" of the storage object includes the "bucket", then multiple buckets can be used and their objects will have unique identifiers. Since all Amazon S3 buckets (across their entire system) must have unique names, the credentials themselves are actually unnecessary (unless I'm missing something). I'm not sure how this would affect things in terms of database migrations and backwards compatibility though since I'm not a PHP developer. |
Secondary s3 storage integration just got move over to https://github.com/owncloud/files_external_s3. Unfortunately GitHub does not allow to move issues. Please reopen the issue at https://github.com/owncloud/files_external_s3/issues |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behavior
The second bucket should list the items in the second S3 bucket
Actual behavior
The second bucket lists the items in the first S3 bucket and throws 404 Not Found errors in the log.
The exception is being caught here:
https://github.com/owncloud/core/blob/master/apps/files_external/lib/amazons3.php#L278
Server configuration
ownCloud version: 6.0.2 (happened on previous 6.x releases)
Code
It looks like this is a result of a non-unique ID in the AmazonS3 __construct function.
https://github.com/owncloud/core/blob/master/apps/files_external/lib/amazons3.php#L81
Using the same IAM account with unique access keys resolves the problem.
The text was updated successfully, but these errors were encountered: