File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
packages/core/src/shared/clients Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "type" : " Bug Fix" ,
3+ "description" : " Resource Explorer: S3 tree view now shows bucket contents correctly, even when restricted to root prefix."
4+ }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { toStream } from '../utilities/collectionUtils'
1919
2020export const DEFAULT_MAX_KEYS = 300 // eslint-disable-line @typescript-eslint/naming-convention
2121export const DEFAULT_DELIMITER = '/' // eslint-disable-line @typescript-eslint/naming-convention
22+ export const defaultPrefix = ''
2223
2324export type Bucket = InterfaceNoSymbol < DefaultBucket >
2425export type Folder = InterfaceNoSymbol < DefaultFolder >
@@ -460,7 +461,13 @@ export class DefaultS3Client {
460461 Bucket : bucket . name ,
461462 Delimiter : DEFAULT_DELIMITER ,
462463 MaxKeys : request . maxResults ?? DEFAULT_MAX_KEYS ,
463- Prefix : request . folderPath ,
464+ /**
465+ * Set '' as the default prefix to ensure that the bucket's content will be displayed
466+ * when the user has at least list access to the root of the bucket.
467+ * https://github.com/aws/aws-toolkit-vscode/issues/4643
468+ * @default ''
469+ */
470+ Prefix : request . folderPath ?? defaultPrefix ,
464471 ContinuationToken : request . continuationToken ,
465472 } )
466473 . promise ( )
You can’t perform that action at this time.
0 commit comments