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)
Tue, Apr 1, 6:35 PM
Unknown Object (File)
Mon, Mar 31, 12:56 AM
Unknown Object (File)
Sun, Mar 23, 2:24 PM
Unknown Object (File)
Tue, Mar 18, 1:18 AM
Unknown Object (File)
Sun, Mar 16, 9:02 PM
Unknown Object (File)
Thu, Mar 13, 9:16 AM
Unknown Object (File)
Tue, Mar 11, 3:59 PM
Unknown Object (File)
Tue, Mar 11, 3:49 PM
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
No Lint Coverage
Unit
No Test Coverage

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

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

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.