Skip to content

404 being presented as 401 #1031

Open
Open
@dipaksand

Description

@dipaksand

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions