Keys Within "bucket-policy" Bucket Are Not Parsed Properly

Hello!

I've noticed an issue when I was trying to access buckets of the Cygno project using the webapp. The webapp was not showing all the buckets that I'm allowed to access.

The traffic of the browser is showing the following:

image

Checking the objects of the "bucket-policy" bucket would result the following:

"Contents": [
    {
      "Key": "admins/cygno/cygno-analysis",
      "LastModified": "2024-05-16 12:33:54.081000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "admins/cygno/cygno-data",
      "LastModified": "2024-05-16 12:33:54.240000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "admins/cygno/cygno-sim",
      "LastModified": "2024-05-16 12:33:54.136000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "admins/incant/incant",
      "LastModified": "2024-05-16 12:33:55.222000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "admins/lhcb/lhcb-data",
      "LastModified": "2024-05-16 12:33:55.719000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "cygno-users/cygno-analysis",
      "LastModified": "2024-05-16 09:33:54.447000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "cygno-users/cygno-data",
      "LastModified": "2024-05-16 09:33:55.039000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "cygno-users/cygno-sim",
      "LastModified": "2024-05-16 09:33:54.989000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "cygno/cygno-analysis",
      "LastModified": "2024-05-16 09:33:53.759000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "cygno/cygno-data",
      "LastModified": "2024-05-16 09:33:54.088000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "cygno/cygno-sim",
      "LastModified": "2024-05-16 09:33:53.997000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "users/AMS-02/ams-02",
      "LastModified": "2024-05-16 12:33:56.009000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "users/cygno/cygno-analysis",
      "LastModified": "2024-05-16 12:33:54.773000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "users/cygno/cygno-data",
      "LastModified": "2024-05-16 12:33:55.122000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "users/cygno/cygno-sim",
      "LastModified": "2024-05-16 12:33:55.042000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    },
    {
      "Key": "users/lhcb/lhcb-data",
      "LastModified": "2024-05-16 12:33:55.894000+00:00",
      "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"",
      "Size": 0,
      "StorageClass": "STANDARD"
    }
  ]

The form of the key is <IAM group>/<IAM subgroup>/<accessible bucket>.

It seems that the webapp is considering <IAM subgroup> as <accessible bucket>.

Thank you!