Skip to content

pull --oci-layout does not reject an empty file path with a digest reference #2229

Closed

Description

@TanvirTian

What happened in your environment?

When running oras pull --oci-layout with a digest reference but no OCI layout file path, ORAS fails later during filesystem access instead of rejecting the invalid reference during parsing.

What did you expect to happen?

ORAS should show an invalid reference error because the file path is empty. It should catch this early, just like it does when the path is empty and a tag is provided

How can we reproduce it?

  • 1 Run:
oras pull --oci-layout @sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a --debug
  • 2 observe this error:
Error: failed to find path "": stat : no such file or directory

This shows that ORAS tries to access an empty file path instead of rejecting the invalid reference early.

What is the version of your ORAS CLI?

1.3.4

What is your OS environment?

CachyOS Linux (x86_64)

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    triage
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions