Skip to content

Fix 500 in document capture when going to IPP#10830

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-500-in-ready-to-verify-ipp
Jun 28, 2024
Merged

Fix 500 in document capture when going to IPP#10830
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-500-in-ready-to-verify-ipp

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

Fixes a 500 from New Relic where current_user is nil in the handle_fraud methods further up the stack by moving the confirm_two_factor_authenticated check to be first.

@mitchellhenke mitchellhenke marked this pull request as ready for review June 18, 2024 19:57
@mitchellhenke mitchellhenke requested review from a team and eileen-nava June 18, 2024 20:13
check_or_render_not_found -> { IdentityConfig.store.in_person_proofing_enabled }

before_action :handle_fraud
before_action :confirm_two_factor_authenticated
Copy link
Contributor

Choose a reason for hiding this comment

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

The fix makes sense. Could you please add a test for it?

Copy link
Contributor Author

@mitchellhenke mitchellhenke Jun 24, 2024

Choose a reason for hiding this comment

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

Test added. It's a bit wonky since it requires a specific combination of configs

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-500-in-ready-to-verify-ipp branch 2 times, most recently from ab48723 to d5ae868 Compare June 24, 2024 15:44
Mitchell Henke added 2 commits June 24, 2024 11:24
changelog: Bug Fixes, In-Person Proofing, Fix 500 in document capture when going to IPP
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-500-in-ready-to-verify-ipp branch from d5ae868 to 6a1e973 Compare June 24, 2024 16:24
Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

Looks good, thanks Mitchell! 👏🏻

@mitchellhenke mitchellhenke merged commit 0882496 into main Jun 28, 2024
@mitchellhenke mitchellhenke deleted the mitchellhenke/fix-500-in-ready-to-verify-ipp branch June 28, 2024 14:46
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.

2 participants