Skip to content

UploadPartCommand is returning a checksum while I said in CreateMultipartUploadCommand I want a FULL_OBJECT checksum check #6900

@kasir-barati

Description

@kasir-barati

Checkboxes for prior research

Describe the bug

So I have a NestJS app, there I am using @aws-sdk/s3-client to upload a file in multiple part. The thing is that UploadPart is generating a checksum for each UploadPartCommand. So can you kindly confirm if this is a bug?

I mean I also suspect that I am doing something wrong, but my console.logs are not saying that

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v22.12.0

Reproduction Steps

  1. Clone the repo
  2. cd microservices/grpc.
  3. pnpm i --frozen-lockfile.
  4. cp apps/file-upload/.env.example apps/file-upload/.env.
  5. Change the env variables to the ones you get from the AWS and remove the OBJECT_STORAGE_ENDPOINT. It should be used only for local testing with Minio.
  6. nx serve file-upload.
  7. nx e2e file-upload-e2e.

Observed Behavior

It says something like the calculated CRC32 does not match the one specified in the CompleteMultipartUploadCommand.

Expected Behavior

Just complete the multipart upload.

Possible Solution

Dunno.

Additional Information/Context

  • Here is where you can see the UploadPartCommand is returning a checksum for each part.
  • While you can clearly see that I have said please use a FULL_OBJECT checksum check here. BTW feel free to add more console.logs to see if I am setting those configs correctly.
  • And here is where I try to complete the file upload.

BTW if you're interested in my test, you can find it here.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions