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

Artifactory rest calls can return HTTP 200 despite failures #44813

Open
philwebb opened this issue Mar 21, 2025 · 0 comments
Open

Artifactory rest calls can return HTTP 200 despite failures #44813

philwebb opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
type: task A general task
Milestone

Comments

@philwebb
Copy link
Member

The curl commands we issue to artifactory can sometimes fail without returning a correct HTTP status code. Most recently this happened with a call to api/v2/distribution/distribute which returned:

{"message":"RBv2 spring:spring-release-bundles-v2/<redacted> was not found","status_code":404}

For extra protection, we can check that the response JSON contains at least one expected field.

@philwebb philwebb added the type: task A general task label Mar 21, 2025
@philwebb philwebb added this to the 3.3.x milestone Mar 21, 2025
@philwebb philwebb self-assigned this Mar 21, 2025
@philwebb philwebb changed the title Artifactory rest calls can return HTTP 200 despite failures #824 Artifactory rest calls can return HTTP 200 despite failures Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant