|
|
|
@ -211,15 +211,13 @@ func newListEntry(entry *filer_pb.Entry, key string, dir string, name string, bu |
|
|
|
ownerID = s3_constants.AccountAnonymousId |
|
|
|
displayName = "anonymous" |
|
|
|
} else { |
|
|
|
// Try to resolve display name from IAM system
|
|
|
|
displayName = "unknown" |
|
|
|
// Note: IAM resolution would require access to the S3ApiServer instance
|
|
|
|
// For now, use a simple fallback or could be enhanced later
|
|
|
|
} |
|
|
|
// Use the ownerID as displayName if no better option is available
|
|
|
|
displayName = ownerID |
|
|
|
|
|
|
|
// Additional fallback to file system username if available and no display name resolved
|
|
|
|
if displayName == "unknown" && entry.Attributes.UserName != "" { |
|
|
|
displayName = entry.Attributes.UserName |
|
|
|
// Additional fallback to file system username if available and different from ownerID
|
|
|
|
if entry.Attributes.UserName != "" && entry.Attributes.UserName != ownerID { |
|
|
|
displayName = entry.Attributes.UserName |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
listEntry.Owner = CanonicalUser{ |
|
|
|
|