8000 fix(rest): add vendor existence validation in getReleases endpoint by Mohamed-hanfy · Pull Request #3212 · eclipse-sw360/sw360 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(rest): add vendor existence validation in getReleases endpoint #3212

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

Mohamed-hanfy
Copy link
Contributor
@Mohamed-hanfy Mohamed-hanfy commented Jun 9, 2025

this PR fixes a critical API inconsistency in the VendorController.getReleases() method. Previously, the endpoint would return 204 No Content for non-existent vendor IDs, making it impossible for clients to distinguish between "vendor exists but has no releases" and "vendor doesn't exist".

closes #3205

Copy link
Member
@GMishx GMishx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change still required :-)

Copy link
Member
@GMishx GMishx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GMishx GMishx added ready ready to merge and removed needs code review labels Jun 9, 2025
@GMishx GMishx merged commit 8fe11c7 into eclipse-sw360:main Jun 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VendorController.getReleases() doesn't validate vendor existence before retrieving releases
2 participants
0