Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

HTTP Headers of PATCH Blob Chunk uploads do not match OCI Spec #59

@containerdude

Description

@containerdude

Hi,

I'm seeing some instability with nodejs-container-image-builder and blob uploads against AWS ECR. I believe that this may be because the library is not quite spec compliant. This results in requests that sometimes succeed and sometimes fail - not good in my CICD pipeline.

I call image.addFiles({'target/':'src/'}) and it appears that the underlying PATCH call that this generates matches OCI spec endpoint end-5.

Per the spec, the following request headers are mandatory:

Content-Type: application/octet-stream
Content-Range: <range>
Content-Length: <length>

However it seems that only Content-Type is actually sent with the request.

I would be grateful for any assistance in getting this resolved. Unfortunately job constraints preventing me from signing any CLA around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions