Skip to content

improve path traversal error msg of oras pull  #978

Closed

Description

@qweeah

If path of artifact blobs are absolute and needs to be pulled outside of current working directory, by default oras pull will be terminated with error like path traversal disallowed

Need to advise user action for this specific error, like Use pull with option -T/allow-path-traversal to allow path traversal

Can this be added to the error message when the pull fails with "Path travel disallowed". Use pull with option -T or --allow-path-traversal to allow path traversal.

Originally posted by @suganyas in #973 (comment)

Activity

  1. qweeah commented on Jun 27, 2023

    @qweeah
    ContributorAuthor

    @suganyas Can you help fix this issue?

  2. suganyas commented on Jun 27, 2023

    @suganyas
    Contributor

    @qweeah I am working on this as part of PR #988

  3. added
    bug
    enhancement
    and removed
    bug
    on Jun 28, 2023
  4. added this to the v1.1.0 milestone on Jun 28, 2023
  5. qweeah commented on Jun 29, 2023

    @qweeah
    ContributorAuthor

    completed in #988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions