Commit e7ec3fe
authored
fix sub path resource matching in list objects (#2444)
fixes #https://github.com/minio/console/issues/2400
Used the policy to validate the fix.
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::sam-card"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::sam-card/*"
]
},
{
"Effect": "Deny",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::sam-card/aa/*"
]
}
]
}
```1 parent 7b389fc commit e7ec3fe
File tree
1 file changed
+17
-11
lines changed- portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects
1 file changed
+17
-11
lines changedLines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
362 | 370 | | |
363 | 371 | | |
364 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
365 | 382 | | |
366 | 383 | | |
367 | 384 | | |
| |||
1179 | 1196 | | |
1180 | 1197 | | |
1181 | 1198 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | 1199 | | |
1186 | 1200 | | |
1187 | 1201 | | |
| |||
1231 | 1245 | | |
1232 | 1246 | | |
1233 | 1247 | | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | 1248 | | |
1243 | 1249 | | |
1244 | 1250 | | |
| |||
0 commit comments