-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exec oras pull, and set allowpathTraversalonwrite True, and get --output to other directory, but is pull to orginal path #750
Comments
Hi @lht2017 , thanks for opening this issue. The purpose of the Lines 604 to 633 in 9b6f321
If you have observed any unexpected behavior, could you please provide additional details? Specifically:
(We hope to have an issue template, but it is still working in progress.) |
Thanks for replay! @Wwwsylvia then use oras command to pull files from the remote registry, and use param --output & allowpathtraversalonwrite true , to other directory like /pull/data/a.txt , but the file a.txt not write in /pull/data/a.txt , actually it always write in the push path, like /usr/local/tmp/a.txt 2 What was your environment? 3 How can we reproduce the issue? 4 with debug I think the name got is /usr/local/tmp/a.txt may the params reverse ? |
Hi @lht2017 , this behavior is by design. The $ oras push $myrepo:$mytag /usr/local/tmp/a.txt --disable-path-validation they would always get the file pulled to the same location oras pull $myrepo:$mytag --output /pull/data/ --allow-path-traversal We just realized that this design could cause user misunderstanding. Do you have any suggestion to help us improve the user experience? |
@qweeah We may consider adding the design philosophy of pull/push to this ORAS doc to clarify the current behaviors. Users won't be surprised if they are aware of this philosophy in advance. |
@Wwwsylvia Thanks,by the way, how can I use oras pull a file to specified other path? |
Hi @lht2017 , how about:
|
This issue is stale because it has been open for 60 days with no activity. Remove the stale label or comment to prevent it from being closed in 30 days. |
when see code in content/file.go
in the method resolveWritePath, when allowpathTraversalonwrite is True, then return the original path to store the pull files
is some bug? or it should like this bellow:
The text was updated successfully, but these errors were encountered: