-
Notifications
You must be signed in to change notification settings - Fork 1
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 #311: Improve detection of failed presence check #315
Fix #311: Improve detection of failed presence check #315
Conversation
...ain/java/com/wultra/app/onboardingserver/impl/service/IdentityVerificationStatusService.java
Outdated
Show resolved
Hide resolved
...in/java/com/wultra/app/onboardingserver/impl/service/document/DocumentProcessingService.java
Outdated
Show resolved
Hide resolved
...in/java/com/wultra/app/onboardingserver/impl/service/document/DocumentProcessingService.java
Show resolved
Hide resolved
...com/wultra/app/onboardingserver/impl/service/verification/VerificationProcessingService.java
Outdated
Show resolved
Hide resolved
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.
Nice addition of a new field to track error/rejection origin.
I am just not sure with the shared naming, used for rejectReason
too.
Furthermore rhere seems to be left several places in the code with setRejectReason
but without setting an origin, is this desired?
Ok, we can extend the logic for the sake of completeness:
|
@saalistaja Please check the changes now. We will also need to merge the changes with state machine logic, I can try to do it, but I think it will be easier for you? |
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.
Last round of review. I am not sure with one condition.
final String rejectReason = idVerification.getRejectReason(); | ||
|
||
if (StringUtils.isNotBlank(errorDetail) || StringUtils.isNotBlank(rejectReason)) { | ||
if (errorOrigin == ErrorOrigin.PRESENCE_CHECK && (StringUtils.isNotBlank(errorDetail) || StringUtils.isNotBlank(rejectReason))) { |
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.
Shouldn't we fix this to
(errorOrigin == ErrorOrigin.PRESENCE_CHECK && StringUtils.isNotBlank(errorDetail)) || (rejectOrigin == ErrorOrigin.PRESENCE_CHECK && StringUtils.isNotBlank(rejectReason))
?
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.
Yes, true.
...in/java/com/wultra/app/onboardingserver/impl/service/document/DocumentProcessingService.java
Outdated
Show resolved
Hide resolved
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.
Well done!
This pull requests adds an
error_origin
column which is used for auditing purposes as well as for checking overall OTP verification result during SCA step (failure due to presence check error).DDL update: