Skip to content

Commit

Permalink
add comments to indicate dummy nature of 'Owner' result fields
Browse files Browse the repository at this point in the history
  • Loading branch information
leontastic committed Feb 12, 2021
1 parent 03f133c commit 8994fc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/controllers/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ exports.getBucket = async function getBucket(ctx) {
Size: object.size,
Owner: options.fetchOwner
? {
// we assume the objects are owned by the fetching user since we don't store owner metadata with objects
ID: ctx.state.account.id,
DisplayName: ctx.state.account.displayName,
}
Expand Down
1 change: 1 addition & 0 deletions lib/controllers/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ exports.getObjectAcl = async function getObjectAcl(ctx) {
AccessControlPolicy: {
'@': { xmlns: 'http://doc.s3.amazonaws.com/2006-03-01/' },
Owner: {
// we assume the objects are owned by the fetching user since we don't store owner metadata with objects
ID: ctx.state.account.id,
DisplayName: ctx.state.account.displayName,
},
Expand Down
1 change: 1 addition & 0 deletions lib/controllers/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports.getService = async function getService(ctx) {
ListAllMyBucketsResult: {
'@': { xmlns: 'http://doc.s3.amazonaws.com/2006-03-01/' },
Owner: {
// we provide dummy values here because we don't store any metadata with buckets
ID: 'BUCKET_OWNER_ID',
DisplayName: 'BUCKET_OWNER_DISPLAY_NAME',
},
Expand Down

0 comments on commit 8994fc4

Please sign in to comment.