Skip to content
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

Error when downloading artifacts to Windows due to illegal chars in path. #132

Open
kasperpagh opened this issue Jan 31, 2023 · 0 comments

Comments

@kasperpagh
Copy link

Hi folks :-)

We've recently hit a problem that we think should be "raised" to an issue on here.

We have a file stored in Artifactory under something like this:
"/file_made_at/10:15:27/file.exe"

When trying to download the file on a Windows machine we're faced with this message:

[Thread downloader_0] downloading C:\TC\t\globalTmp\1675069505929-0\<repo_name/file_made_at/2023-01-30_07:19:23:UTC/file.exe as part of file <URL_OF_ARTIFACTORY>/<REPO_NAME>/artifactory/file_made_at//2023-01-30_07:19:23:UTC/file.exe threw an exception: java.io.IOException: The filename, directory name, or volume label syntax is incorrect

We're already using a flat=true filespec, such that own own target does not include any of the "bad" chars, but we cannot stop the plugin from trying to construct a temp. dir that the OS get's angry about.

It sounds like you could, instead of constructing a temp dir using the exact path from the server, generate a random but valid folder name instead.

B/R
Kasper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant