Page MenuHomePhabricator

[lib] Handle user_not_found returned by GetKeyserverKeys RPC
ClosedPublic

Authored by bartek on Feb 27 2025, 7:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 6, 5:49 AM
Unknown Object (File)
Sun, Apr 6, 12:01 AM
Unknown Object (File)
Sun, Apr 6, 12:00 AM
Unknown Object (File)
Sat, Apr 5, 10:37 AM
Unknown Object (File)
Fri, Apr 4, 9:37 AM
Unknown Object (File)
Fri, Apr 4, 9:26 AM
Unknown Object (File)
Tue, Apr 1, 6:35 PM
Unknown Object (File)
Mon, Mar 31, 12:56 AM
Subscribers

Details

Summary

Address ENG-10261.
Replaced user_not_found with custom error message that doesn't trigger the "Invalid username or password" alert.

Test Plan
  • Mocked GetKeyserverKeys to always throw new Error('user_not_found')
  • Before: invalid credentials alert was shown
  • After: unknown error modal is shown

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Feb 27 2025, 8:30 AM
tomek added inline comments.
lib/keyserver-conn/keyserver-auth.js
158 ↗(On Diff #47293)

Should we show a different alert in such a case?

This revision is now accepted and ready to land.Feb 27 2025, 9:00 AM
lib/keyserver-conn/keyserver-auth.js
158 ↗(On Diff #47293)

This might be worth considering when implementing support for multiple keyservers.
Now, this is a case only for authoritative keyserver auth, so I don't think UI changes are necessary.

This revision was landed with ongoing or failed builds.Feb 28 2025, 3:27 AM
This revision was automatically updated to reflect the committed changes.