Skip to content

bug: AWS S3 SDK v3 (PR #221) does not seem to work with Digital Ocean Spaces #230

Closed
@mman

Description

@mman

I am experimenting a bit with the PR #221 and although it works nicely with AWS S3, it does not seem to work with DO spaces. There are two issues.

  1. When you use Read/Write/Delete bucket scoped access key, the s3 adapter fails with AccessDenied error when trying to create already existing bucket. We always try to createBucket before performing any other operation.
  2. When using FullAccess access key, the s3 adapter fails with BucketAlreadyExists error. If the bucket does not exist, first save will create it, and any other use of the adapter will fail with BucketAlreadyExists error.

Looks like there is a difference in how AWS S3 JS SDK v2 and v3 handled the response of createBucket API call, although I could not find (yet) the offending line of code to confirm it.

In any way, PR #221 does not seem to work with DO Spaces as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions