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
iOS: Can't accept encrypted shared notebooks #10409
Comments
This may be related to the following upstream issues: |
Android seems to also have trouble with encrypted shared notebooks — notes can be downloaded, but uploading a new note fails with "master key is not loaded". Edit: The Android issue might be new — it should be verified that this isn't an issue introduced by React Native 0.74. It's also possible that this issue is caused by an error in the mobile share-accepting logic. As such, I should test:
Edit 2: Other |
Debugging the iOS issue:
|
There seem to be two separate issues described above. 1. Accepting shared notebooks can fail
Implementing this in RSA.react-native.ts seems to fix the issue (see this draft implementation). This issue also happens on Android. I didn't observe the issue due to an incorrectly set-up testing environment (encryption disabled on desktop but master keys were present). 2. Sync issues with encrypted shared notebooksAfter accepting a share on a desktop client, doing the following seems to have fixed the iOS sync issues with an encrypted shared notebook:
This part of the issue still needs to be investigated. |
Operating system
iOS
Joplin version
13.0.1
Desktop version info
Joplin 13.0.1 (dev, ios)
Client ID: 6480c522f64f41169da1440f54671dce
Sync Version: 3
Profile Version: 47
Keychain Supported: No
Note Tabs: 1.4.0
Quick Links: 1.3.2
FTS enabled: 1
Hermes enabled: 1
Current behaviour
To reproduce:
Expected behaviour
It should be possible to accept and sync shared notebooks
Logs
Error when failing to accept a share:
By adding
console.log
statements, the error seems to be caused byrsa().decrypt
returning a promise that resolves toundefined
on this line:joplin/packages/lib/services/e2ee/ppk.ts
Line 105 in 90ec1f5
The
.slice
-related error comes from an attempt to use theundefined
result.The text was updated successfully, but these errors were encountered: