Upload uses anonymous credentials to PUT to artifactory
See original GitHub issueI’ve been unable to get a conan upload
to work with our Artifactory, and I think I figured out why.
Looking at the request logs, I see that the GET and POST requests have my correct user in them, but the PUT transactions come through with user anonymous
, and that is rejected with a “403 Forbidden!” message.
If I use curl to do the PUT, it actually creates a file.
I might be able to do a pull request for this, but if you get there first, I think it’s in rest_client.py, function upload_files()
, where it does this:
response = uploader.upload(resource_url, files[filename], auth=auth, dedup=dedup,
retry=retry, retry_wait=retry_wait)
I think it needs to pass self.custom_headers
in there, and then that function needs to use those headers when it does call_with_retry(...headers=None)
or, if dedup
is set, merge the custom headers into those it passes to self.requester.put()
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (7 by maintainers)
It works perfectly. Thanks.
This has been fixed and released in 0.19.2. Please check. Thanks very much for your help and work on this issue.