-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix_: normalize keycard password for pairing #6340
fix_: normalize keycard password for pairing #6340
Conversation
4156cbc
to
0dbc513
Compare
✔️ status-go/prs/macos/aarch64/main/PR-6340#1 🔹 ~4 min 54 sec 🔹 6454936 🔹 📦 macos package |
✔️ status-go/prs/ios/PR-6340#1 🔹 ~5 min 14 sec 🔹 6454936 🔹 📦 ios package |
✔️ status-go/prs/windows/x86_64/main/PR-6340#1 🔹 ~5 min 35 sec 🔹 6454936 🔹 📦 windows package |
✔️ status-go/prs/android/PR-6340#1 🔹 ~6 min 24 sec 🔹 6454936 🔹 📦 android package |
✔️ status-go/prs/linux/x86_64/main/PR-6340#1 🔹 ~6 min 29 sec 🔹 6454936 🔹 📦 linux package |
✔️ status-go/prs/macos/x86_64/main/PR-6340#1 🔹 ~7 min 25 sec 🔹 6454936 🔹 📦 macos package |
✔️ status-go/prs/windows/x86_64/main/PR-6340#2 🔹 ~3 min 43 sec 🔹 0dbc513 🔹 📦 windows package |
✔️ status-go/prs/macos/aarch64/main/PR-6340#2 🔹 ~5 min 29 sec 🔹 0dbc513 🔹 📦 macos package |
✔️ status-go/prs/ios/PR-6340#2 🔹 ~5 min 48 sec 🔹 0dbc513 🔹 📦 ios package |
✔️ status-go/prs/macos/x86_64/main/PR-6340#2 🔹 ~5 min 16 sec 🔹 0dbc513 🔹 📦 macos package |
✔️ status-go/prs/android/PR-6340#2 🔹 ~6 min 57 sec 🔹 0dbc513 🔹 📦 android package |
✔️ status-go/prs/linux/x86_64/main/PR-6340#2 🔹 ~9 min 17 sec 🔹 0dbc513 🔹 📦 linux package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What an outrageously straight forward fix for such an involved investigation. Congratulations on this fix.
protocol/messenger_handler.go
Outdated
@@ -3827,7 +3827,7 @@ func (m *Messenger) handleSyncKeypairInternal(state *ReceivedMessageState, messa | |||
if m.walletAPI != nil { | |||
err := m.walletAPI.SetPairingsJSONFileContent(message.KeycardPairings) | |||
if err != nil { | |||
return err | |||
m.logger.Warn("handleSyncKeypairInternal unable to set pairing.json file", zap.Error(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably this is a non-critical error, we don't need to return it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah im not sure about this one, @saledjenic ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go with return
if an error occurs.
handleSyncKeypairInternal
is used in 2 scenarios:
- while local pairing (where we use
fromLocalPairing = true
) - while applying the sync message from the paired device (where we use
fromLocalPairing = false
)
But an interesting thing now is that I don't see part of the code that is calling func (m *Messenger) HandleSyncKeypair(state *ReceivedMessageState, message *protobuf.SyncKeypair, statusMessage *v1protocol.StatusMessage) error
function. Seems it got removed at some point. So we should remove that function if we don't need this handling (what I am not sure about).
0dbc513
to
063f133
Compare
✔️ status-go/prs/windows/x86_64/main/PR-6340#3 🔹 ~3 min 42 sec 🔹 063f133 🔹 📦 windows package |
✔️ status-go/prs/macos/aarch64/main/PR-6340#3 🔹 ~4 min 17 sec 🔹 063f133 🔹 📦 macos package |
✔️ status-go/prs/ios/PR-6340#3 🔹 ~4 min 45 sec 🔹 063f133 🔹 📦 ios package |
✔️ status-go/prs/linux/x86_64/main/PR-6340#3 🔹 ~5 min 46 sec 🔹 063f133 🔹 📦 linux package |
✔️ status-go/prs/macos/x86_64/main/PR-6340#3 🔹 ~5 min 55 sec 🔹 063f133 🔹 📦 macos package |
✔️ status-go/prs/android/PR-6340#3 🔹 ~6 min 44 sec 🔹 063f133 🔹 📦 android package |
✔️ status-go/prs/tests-rpc/PR-6340#2 🔹 ~12 min 🔹 0dbc513 🔹 📦 tests-rpc package |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6340 +/- ##
===========================================
- Coverage 59.67% 59.67% -0.01%
===========================================
Files 865 865
Lines 112981 112987 +6
===========================================
+ Hits 67418 67420 +2
- Misses 37727 37734 +7
+ Partials 7836 7833 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✔️ status-go/prs/macos/x86_64/main/PR-6340#9 🔹 ~6 min 6 sec 🔹 1d99b40 🔹 📦 macos package |
1d99b40
to
5d8cfc6
Compare
✔️ status-go/prs/ios/PR-6340#10 🔹 ~3 min 8 sec 🔹 5d8cfc6 🔹 📦 ios package |
✔️ status-go/prs/android/PR-6340#10 🔹 ~3 min 19 sec 🔹 5d8cfc6 🔹 📦 android package |
✔️ status-go/prs/windows/x86_64/main/PR-6340#11 🔹 ~4 min 2 sec 🔹 5d8cfc6 🔹 📦 windows package |
✔️ status-go/prs/macos/aarch64/main/PR-6340#11 🔹 ~4 min 27 sec 🔹 5d8cfc6 🔹 📦 macos package |
✔️ status-go/prs/linux/x86_64/main/PR-6340#10 🔹 ~6 min 9 sec 🔹 5d8cfc6 🔹 📦 linux package |
✔️ status-go/prs/macos/x86_64/main/PR-6340#10 🔹 ~6 min 15 sec 🔹 5d8cfc6 🔹 📦 macos package |
✔️ status-go/prs/tests-rpc/PR-6340#14 🔹 ~12 min 🔹 5d8cfc6 🔹 📦 tests-rpc package |
5d8cfc6
to
dca0890
Compare
✔️ status-go/prs/ios/PR-6340#11 🔹 ~3 min 9 sec 🔹 dca0890 🔹 📦 ios package |
✔️ status-go/prs/android/PR-6340#11 🔹 ~3 min 11 sec 🔹 dca0890 🔹 📦 android package |
✔️ status-go/prs/windows/x86_64/main/PR-6340#12 🔹 ~3 min 41 sec 🔹 dca0890 🔹 📦 windows package |
✔️ status-go/prs/macos/aarch64/main/PR-6340#12 🔹 ~4 min 27 sec 🔹 dca0890 🔹 📦 macos package |
✔️ status-go/prs/linux/x86_64/main/PR-6340#11 🔹 ~5 min 12 sec 🔹 dca0890 🔹 📦 linux package |
✔️ status-go/prs/macos/x86_64/main/PR-6340#11 🔹 ~5 min 59 sec 🔹 dca0890 🔹 📦 macos package |
✔️ status-go/prs/tests/PR-6340#15 🔹 ~31 min 🔹 5d8cfc6 🔹 📦 tests package |
✔️ status-go/prs/tests-rpc/PR-6340#15 🔹 ~12 min 🔹 dca0890 🔹 📦 tests-rpc package |
dca0890
to
ae62568
Compare
✔️ status-go/prs/android/PR-6340#12 🔹 ~3 min 14 sec 🔹 ae62568 🔹 📦 android package |
✔️ status-go/prs/ios/PR-6340#12 🔹 ~3 min 20 sec 🔹 ae62568 🔹 📦 ios package |
✔️ status-go/prs/windows/x86_64/main/PR-6340#13 🔹 ~3 min 34 sec 🔹 ae62568 🔹 📦 windows package |
✔️ status-go/prs/macos/aarch64/main/PR-6340#13 🔹 ~4 min 24 sec 🔹 ae62568 🔹 📦 macos package |
✔️ status-go/prs/linux/x86_64/main/PR-6340#12 🔹 ~5 min 11 sec 🔹 ae62568 🔹 📦 linux package |
✔️ status-go/prs/macos/x86_64/main/PR-6340#12 🔹 ~5 min 58 sec 🔹 ae62568 🔹 📦 macos package |
✔️ status-go/prs/tests-rpc/PR-6340#17 🔹 ~11 min 🔹 ae62568 🔹 📦 tests-rpc package |
✔️ status-go/prs/tests/PR-6340#17 🔹 ~31 min 🔹 ae62568 🔹 📦 tests package |
original issue status-im/status-mobile#21812
https://www.notion.so/Summary-of-Keycard-Profile-Syncing-Issue-1988f96fb65c80709f55e91f8f5e7e9c?pvs=4