Skip to content

Duplicate Grantee returned from GetBucketAcl #1078

@bwoznicki

Description

@bwoznicki

Confirm by changing [ ] to [x] below:

  • I've gone though Developer Guide and API reference
  • I've checked AWS Forums and StackOverflow for answers
  • [ ]
    Hi while working with aws-sdk-go v2 I have noticed that GetBucketAcl is returning array of duplicate Grants where Grantee type/displayname/emailaddress/id/uri/permission is identical. Is there a reason for this ? In the console I can see only one Grant which is current account. (some fields redacted)

example:

Getting bucket acl for:  <some_bucket>
{
  "Grants": [
    {
      "Grantee": {
        "Type": "CanonicalUser",
        "DisplayName": null,
        "EmailAddress": null,
        "ID": "0b1_____91b",
        "URI": null
      },
      "Permission": "FULL_CONTROL"
    },
    {
      "Grantee": {
        "Type": "CanonicalUser",
        "DisplayName": null,
        "EmailAddress": null,
        "ID": "0b1_____91b",
        "URI": null
      },
      "Permission": "FULL_CONTROL"
    },
    {
      "Grantee": {
        "Type": "CanonicalUser",
        "DisplayName": null,
        "EmailAddress": null,
        "ID": "0b1_____91b",
        "URI": null
      },
      "Permission": "FULL_CONTROL"
    },
    {
      "Grantee": {
        "Type": "CanonicalUser",
        "DisplayName": null,
        "EmailAddress": null,
        "ID": "0b1_____91b",
        "URI": null
      },
      "Permission": "FULL_CONTROL"
    },
    {
      "Grantee": {
        "Type": "CanonicalUser",
        "DisplayName": null,
        "EmailAddress": null,
        "ID": "0b1_____91b",
        "URI": null
      },
      "Permission": "FULL_CONTROL"
    }
  ],
  "Owner": {
    "DisplayName": null,
    "ID": "0b1_____91b"
  },
  "ResultMetadata": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions