Skip to content

Get-S3ObjectAttribute doesn't return parts #315

@mmangiante

Description

@mmangiante

Describe 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions