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

Fix handling of a deleted doc, so the error message to the user is clearer #766

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

kdeus
Copy link
Contributor

@kdeus kdeus commented Oct 30, 2024

Added a null check so the code ends up displaying a message to the user, "No available documents can fulfill the request," rather than the generic, "An error has occurred."

This hits when running OpenID4VP verification from the verifier server to an empty wallet.

Tested by:

  • Manual testing
  • ./gradlew check
  • ./gradlew connectedCheck

Fixes #763

  • Tests pass

…earer.

Added a null check so the code ends up displaying a message to the user, "No
available documents can fulfill the request," rather than the generic, "An
error has occurred."

This hits when running OpenID4VP verification from the verifier server to
an empty wallet.

Signed-off-by: Kevin Deus <[email protected]>
@kdeus kdeus requested a review from davidz25 October 30, 2024 20:26
@davidz25 davidz25 merged commit 4ffa288 into openwallet-foundation-labs:main Oct 31, 2024
3 checks passed
@kdeus kdeus deleted the fix-npd-no-doc branch October 31, 2024 20:17
kdeus added a commit to kdeus/identity-credential that referenced this pull request Oct 31, 2024
…earer. (openwallet-foundation-labs#766)

Added a null check so the code ends up displaying a message to the user, "No
available documents can fulfill the request," rather than the generic, "An
error has occurred."

This hits when running OpenID4VP verification from the verifier server to
an empty wallet.

Signed-off-by: Kevin Deus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vague error message when requesting OpenID4VP verification to a wallet with no documents
2 participants