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

nexus-cli making extra anonymous request before sending credentialed request #98

Open
gmanfunky opened this issue Mar 25, 2014 · 0 comments

Comments

@gmanfunky
Copy link

Below you can see a usual nexus-cli behavior from a web-server log perspective.

Note the second request returns a 307 redirect, leading to the third request, which is sent without the configured credentials resulting in a 401 if anonymous access is disabled.

Expected behavior: Just go ahead and send the artifact request with basic authentication the first time. No need to wait for a "challenge"

When configured with credentials, I think we are assuming basic authentication in the case of maven repos.

10.10.10.10 - deployment [24/Mar/2014:23:06:02 +0000] "GET /nexus/service/local/artifact/maven/resolve?g=com.example&a=my-package&e=tgz&v=4.4.4&r=foo1 HTTP/1.1" 200 651 "-" "-"

10.10.10.10 - deployment [24/Mar/2014:23:06:03 +0000] "GET /nexus/service/local/artifact/maven/redirect?g=com.example&a=my-package&e=tgz&v=4.4.4&r=foo1 HTTP/1.1" 307 292 "-" "-"

10.10.10.10 - - [24/Mar/2014:23:06:03 +0000] "GET /nexus/service/local/repositories/foo1/content/com/example/my-package/4.4.4/my-package-4.4.4.tgz HTTP/1.1" 401 0 "-" "-"

10.10.10.10 - deployment [24/Mar/2014:23:06:03 +0000] "GET /nexus/service/local/repositories/foo1/content/com/example/my-package/4.4.4/my-package-4.4.4.tgz HTTP/1.1" 200 1757065 "-" "-"
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