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

bug: #778 return empty page result instead of HTTP 404 #954

Conversation

ds-lcapellino
Copy link
Contributor

@ds-lcapellino ds-lcapellino commented May 8, 2024

Description

This PR fixes a bug in the /contracts API where an HTTP404 is returned in case of no present contract agreement IDs. Since this API returns a PageResult, the response should be HTTP 200 with an empty PageResult. This bug was discovered with the migration to EDC 0.7.0 (#778)
Warning logs are also added with this PR.

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

@ds-lcapellino ds-lcapellino added bug Something isn't working backend Backend related issues java Pull requests that update Java code labels May 8, 2024
@ds-lcapellino ds-lcapellino requested a review from ds-mwesener May 8, 2024 13:47
@ds-lcapellino ds-lcapellino force-pushed the bug/778-return-empty-pageResult-instead-404 branch from 10c11e3 to 3b4bee1 Compare May 8, 2024 13:49
@ds-lcapellino ds-lcapellino changed the title Bug/778 return empty page result insteadof http 404 bug: #778 return empty page result insteadof http 404 May 8, 2024
Copy link
Contributor

@ds-mwesener ds-mwesener left a comment

Choose a reason for hiding this comment

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

LGTM.

@ds-mwesener ds-mwesener merged commit b9b23f8 into eclipse-tractusx:main May 8, 2024
14 of 15 checks passed
@ds-mwesener ds-mwesener deleted the bug/778-return-empty-pageResult-instead-404 branch May 8, 2024 13:58
@ds-lcapellino ds-lcapellino changed the title bug: #778 return empty page result insteadof http 404 bug: #778 return empty page result instead of HTTP 404 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues bug Something isn't working java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants