-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix(irs-api):[#755] fix job callbacks called multiple times after com… #862
Conversation
Test Results35 tests - 1 34 ✅ +17 5m 18s ⏱️ - 1h 37m 46s For more details on these failures, see this check. Results for commit eb6794e. ± Comparison against base commit ee0845a. This pull request removes 6 and adds 5 tests. Note that renamed tests count towards both.
|
...pi/src/main/java/org/eclipse/tractusx/irs/aaswrapper/job/CallbackResponderEventListener.java
Outdated
Show resolved
Hide resolved
irs-api/src/test/java/org/eclipse/tractusx/irs/IrsWireMockIntegrationTest.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if (!urlValidator.isValid(callbackUri.toString())) { | ||
log.warn(INVALID_CALLBACK_URL, callbackUri); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this also checked when creating a job? And if so, is the double check necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The callback URL is only validated for right protocol at job creation.
Perhaps it would make more sense to validate the URL at job creation instead of when the callback is executed but that goes beyond the scope of this bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…pletion
Description
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review: