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
F2209226: D12085.id40328.diff
Sun, Jul 7, 4:22 PM
F2209191: D12085.id40309.diff
Sun, Jul 7, 4:16 PM
Unknown Object (File)
Thu, Jul 4, 8:10 PM
Unknown Object (File)
Thu, Jul 4, 11:04 AM
Unknown Object (File)
Sun, Jun 23, 4:17 AM
Unknown Object (File)
Sun, Jun 23, 4:17 AM
Unknown Object (File)
Wed, Jun 19, 4:06 PM
Unknown Object (File)
Wed, Jun 19, 9:11 AM
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