Skip to content
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

Fix S3 copyObject usage - Missing bucket name #3745

Merged
merged 4 commits into from
Mar 23, 2021
Merged

Conversation

MaXeraph
Copy link
Contributor

@MaXeraph MaXeraph commented Mar 23, 2021

Problem

Currently, upon moving/renaming files in wiki with AWS S3 storage setup, we get Access Denied/Invalid object key errors from AWS.

Solution

  • As specified in S3 docs, the copyObject method requires the CopySource field to supply the bucket name in the path.
  • As such I have prepend the bucketName to CopySource fields.

Let me know if this change is OK. I can make any change necessary to follow the repo's guidance.

server/modules/storage/s3/common.js Outdated Show resolved Hide resolved
server/modules/storage/s3/common.js Outdated Show resolved Hide resolved
@MaXeraph MaXeraph requested a review from NGPixel March 23, 2021 14:11
server/modules/storage/s3/common.js Outdated Show resolved Hide resolved
@NGPixel NGPixel merged commit 033b8e6 into requarks:dev Mar 23, 2021
jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this pull request Jul 9, 2024
* Fix copyObject usage: supply bucket name

* No semicolon

* Assign empty string on initialization

* Remove empty line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants