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

404 being presented as 401 #1031

Open
dipaksand opened this issue Jan 24, 2024 · 0 comments
Open

404 being presented as 401 #1031

dipaksand opened this issue Jan 24, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@dipaksand
Copy link

Describe the bug
During download attempt if an artefact is not found it is getting reported as unauthorised error

SBM Version
Main branch latest - c96893f

SBM Application
Shell

To Reproduce
Steps to reproduce the behavior:
Add a repository that does not contain a needed Pom and see the result after running the application

Expected behavior
Not found should present as not found

Screenshots
If applicable, add screenshots to help explain your problem.

Stacktrace
If applicable, add the (sanitized) stacktrace here.

Example Source code to replicate the issue (Optional)
It would help us immensely if we were to have an example test source code or a snippet where you can see this problem, you could attach a zip file along with this

MavenPomDownloader tried to reattempt download if there is a 404 and this time it does that without authentication. We probably can solve this by not attempting download if it is a 404 or attempt without credential only for a 401

P.S. Please remove any sensitive data and do not upload any proprietary source.

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Version [e.g. 10]

Additional context
Add any other context about the problem here.

@dipaksand dipaksand added the type: bug Something isn't working label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant