-
Notifications
You must be signed in to change notification settings - Fork 181
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
Durable mkdir using oras pull #1457
Comments
Linking #1159 as a potential workaround. |
Tested with |
Repo steps: $ echo hello world > "hello: world"
$ ls
'hello: world'
$ tar cf hello.tar hello\:\ world Copy > tar.exe xvf .\hello.tar
x hello: world
> dir
Directory: D:\Test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 7/30/2024 1:53 PM 10240 hello.tar
-a---- 7/30/2024 1:52 PM 12 hello_ world |
@mushka-stara If ORAS allows to customize file/directory name in |
It's hard to cover all edge cases for pathing, e.g. a Linux user may create a file named |
@FeynmanZhou custom directory or file name would work well |
What happened in your environment?
Error: failed to extract tar to C:\temp\org_platypus-hatchery: mkdir C:\temp\org_platypus-hatchery\dashboards\Inflation - US ZOO: NonAvian Data (Reptiles, Amphibians, etc): The directory name is invalid.
(There are two problems here, first are invalid characters, the colon, in the directory name. oras could possibly defensively escape the colon with something like whatever is used in html, whatever works. The second problem is a bit more fundamental, where the user will have used a descriptive long directory name in the original application, in this case Grafana. For me, it would be sufficient to address this second problem.)
What did you expect to happen?
orcas pull should have at least done
mkdir "C:\temp\org_platypus-hatchery\dashboards\Inflation - US ZOO NonAvian Data (Reptiles, Amphibians, etc)"
(put double quotes around the windows directory name and maybe remove invalid characters)
As for the other problem, the vendor Grafana has been informed.
How can we reproduce it?
orcas pull a registry containing
What is the version of your ORAS CLI?
C:\temp>oras version
Version: 1.2.0
Go version: go1.22.3
Git commit: dcef719
Git tree state: clean
What is your OS environment?
WIndows 10
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: