Get-S3ObjectAttribute doesn't return parts
See original GitHub issueDescribe the bug
I tried to use Get-S3ObjectAttribute to return parts of a multipart uploaded file (via web UI) to do the checksum of these, but no parts are returned.,
Expected Behavior
When you call the Get-S3ObjectAttribute cmdlet, I expect that Parts {} array is populated if the upload is multipart, like the TotalPartsCount property indicates correctly.
Current Behavior
The Parts {} is empty, even if the property TotalPartsCount is different from 0.
Reproduction Steps
$bucket = "mybucket"
# I suppose, for this issue that my file to query is in the first position of my bucket 
$obj = (Get-S3Object -BucketName $bucket)[0]
# Pass the object to the cmdlet
$obj | Get-S3ObjectAttribute -ObjectAttributes Checksum,ObjectParts -Select ObjectParts
The result is something like this:
IsTruncated : True MaxParts : 1000 NextPartNumberMarker : 1000 PartNumberMarker : 0 Parts : {} TotalPartsCount : 1076
Possible Solution
No response
Additional Information/Context
No response
AWS Tools for PowerShell version used
AWS Tools for PowerShell Version 4.1.241 Copyright 2012-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Amazon Web Services SDK for .NET Core Runtime Version 3.7.103.8 Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
PowerShell version used
Name Value
PSVersion 5.1.19041.2364 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 10.0.19041.2364 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Operating System and version
Windows 10
Issue Analytics
- State:
 - Created 9 months ago
 - Comments:9 (7 by maintainers)
 

Top Related StackOverflow Question
Reproducible using below code:
We need to add dependency on
AWSSDK.Extensions.CrtIntegrationto use customChecksumAlgorithm.Running the code returns the below verbose logging which shows that Part(s) information is returned by S3 service when using non-default
ChecksumAlgorithm.⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.