You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user creates an account and immediately links a second device, their read key is sometimes overwritten.
Impact
Everything will appear to be fine, but on reloading the page the file system will not load with an Error: Could not parse a valid private tree using the given key error. The file system is unusable when this occurs.
Solution
Do not overwrite the read key when we already have one. Overwriting occurs when the user's data root is not available from DNS, and we create a new file system.
Another solution might be to wait longer for a data root to be available from DNS, but there are likely tradeoffs with this approach.
Detail
Describe the bug
The overwrite occurs when the user has created a new account and immediately links a new device. If the linking completes quickly enough, the user's data root CID may no be available from DNS. When this occurs, a new file system is created, overwriting the read key received during device linking.
Told through console logs:
Expected behavior
The read key should never be overwritten.
If the data root CID can't be resolved, we should throw an error instead of creating an empty file system. Alternatively, we could merge in the actual file system when it becomes available.
Desktop (please complete the following information):
OS: macOS
Browser Linking between Chrome and Firefox
The text was updated successfully, but these errors were encountered:
Summary
Problem
When a user creates an account and immediately links a second device, their read key is sometimes overwritten.
Impact
Everything will appear to be fine, but on reloading the page the file system will not load with an
Error: Could not parse a valid private tree using the given key
error. The file system is unusable when this occurs.Solution
Do not overwrite the read key when we already have one. Overwriting occurs when the user's data root is not available from DNS, and we create a new file system.
Another solution might be to wait longer for a data root to be available from DNS, but there are likely tradeoffs with this approach.
Detail
Describe the bug
The overwrite occurs when the user has created a new account and immediately links a new device. If the linking completes quickly enough, the user's data root CID may no be available from DNS. When this occurs, a new file system is created, overwriting the read key received during device linking.
Told through console logs:
Expected behavior
The read key should never be overwritten.
If the data root CID can't be resolved, we should throw an error instead of creating an empty file system. Alternatively, we could merge in the actual file system when it becomes available.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: