question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upload uses anonymous credentials to PUT to artifactory

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tamborilcommented, Feb 15, 2017

It works perfectly. Thanks.

0reactions
memshardedcommented, Feb 15, 2017

This has been fixed and released in 0.19.2. Please check. Thanks very much for your help and work on this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I allow Anonymous user access to specific ... - JFrog
ARTIFACTORY : How to Grant an Anonymous User Access to Specific Repositories · Navigate Identify and Admin > Security > Permissions. · Edit...
Read more >
ARTIFACTORY: How to allow anonymous access to local ...
In this article we will understand how to allow anonymous access to all the local repositories whilst keeping the authentication necessary ...
Read more >
How can I pull anonymously but require authentication ... - JFrog
By default, the permissions for an anonymous user are Read & Deploy/Cache for any remote repository and Read for any repository type:.
Read more >
Artifactory REST API - JFrog - JFrog Documentation
Authentication. Artifactory's REST API supports these forms of authentication: Basic authentication using your username and password.
Read more >
"Allow Anonymous Access" general setting causes maven to ...
"Allow Anonymous Access" general setting causes maven to NOT send user credentials when uploading artifacts. This is a problem because we would like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found