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

is_file() raises when the artifacts' name contains square brackets #68

Open
souris4science opened this issue May 13, 2019 · 1 comment

Comments

@souris4science
Copy link

The following exception is raised when is_file() method is called for an artifact where its name contains square branckets ('[' or ']'):

if artifact.is_file():

File "C:\Python37-32\lib\site-packages\artifactory.py", line 1035, in is_file
return self._accessor.is_file(self)
File "C:\Python37-32\lib\site-packages\artifactory.py", line 534, in is_file
stat = self.stat(pathobj)
File "C:\Python37-32\lib\site-packages\artifactory.py", line 492, in stat
jsn = self.get_stat_json(pathobj)
File "C:\Python37-32\lib\site-packages\artifactory.py", line 471, in get_stat_json
raise RuntimeError(text)
RuntimeError: {
"errors" : [ {
"status" : 400,
"message" : "Bad Request"
} ]
}

@cowlinator
Copy link

This repo is currently outdated
There is an active fork of this library available at https://github.com/devopshq/artifactory

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

2 participants