Skip to content

Cannot insert legacy ACL for an object when uniform bucket-level access is enabled #23

@ebarcsay

Description

@ebarcsay

Description

If the bucket Access control setting is set to uniform in Google Cloud Storage Bucket Settings, I got the following error message from GCP while trying to upload an image:
"Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access"

Screenshot 2021-07-02 at 15 00 07

Steps to reproduce

  1. Create a new volume under Settings > Assets > Volumes
  2. Set Volume Type to Google Cloud Storage and set other options and select the appropriate bucket.
  3. Create a new 'asset' type field and select the newly created volume.
  4. Add the new field to a section.
  5. Try to create a new entry and upload a file to the field.
  6. You'll get the error message above.

Additional info

  • Craft version: 3.6.17
  • PHP version: 8.0.3
  • Database driver & version: PostgreSQL 13.3
  • Plugins & versions:
    Control Panel CSS 2.3.0
    Control Panel Nav 3.0.16
    Google Cloud Storage 1.4.0

Cloud Storage Access control settings:
Screenshot 2021-07-02 at 15 56 17

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