Page MenuHomePhabricator

[native] Handle client version unsupported errors in registrationServerCall
ClosedPublic

Authored by ashoat on May 16 2024, 5:05 PM.
Tags
None
Referenced Files
F3382296: D12085.id40328.diff
Thu, Nov 28, 9:41 AM
F3382285: D12085.id40309.diff
Thu, Nov 28, 9:39 AM
F3381966: D12085.diff
Thu, Nov 28, 7:38 AM
Unknown Object (File)
Sat, Nov 9, 2:01 PM
Unknown Object (File)
Sat, Nov 9, 1:00 PM
Unknown Object (File)
Sat, Nov 9, 8:48 AM
Unknown Object (File)
Thu, Nov 7, 12:26 PM
Unknown Object (File)
Oct 2 2024, 5:39 PM
Subscribers

Details

Summary

We were handling these in some places, but not all. This diff makes sure we handle it all places in registrationServerCall, which gets us closer to resolving ENG-8113.

Depends on D12084

Test Plan

There are a lot of spots here, and I didn't check all of them. I verified the core parts:

  1. That identity service returns Unsupported version and keyserver returns client_version_unsupported when the client version is outdated
  2. That the Alerts showed correctly
  3. That onAlertAcknowledged worked

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.May 16 2024, 5:10 PM
Harbormaster failed remote builds in B29000: Diff 40309!
inka added inline comments.
native/account/registration/registration-server-call.js
264–285

This makes it confusing to read, because we don't handle the errors in the above cases in this else/if block. I would rather this code was more consistent, and this error handling was refactored to a separate function like for identityRegisterUsernameAccount and legacyKeyserverRegisterUsernameAccount. And the same for identityWalletRegisterCall. Can we do that?

This revision is now accepted and ready to land.May 17 2024, 3:57 AM
native/account/registration/registration-server-call.js
264–285