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
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
Unknown Object (File)
Sun, Jun 16, 3:16 PM
Unknown Object (File)
Mon, Jun 10, 3:33 AM
Unknown Object (File)
Mon, Jun 10, 2:25 AM
Unknown Object (File)
Sun, Jun 9, 11:00 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #40309)

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 ↗(On Diff #40309)