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
Currently, a 401 or 403 response when sending a message is treated similarly to network disruption. The resend link is presented, but and the ciphertext is saved for re-transmission. If the client was re-linked in the meantime, then that ciphertext is encrypted with stale/deleted session data.
reading from the top of the log:
alice installs a fresh desktop and links it
alice and bob message each other establishing sessions between all devices involved.
alice unlinks (or reinstalls and re-registers)
alice desktop attempts to send a message while unlinked, gets a 401 and offers an option to resend
after reinstall/relink, alice-desktop clears the session store. this is evidenced by the fact that it attempts to get new keys for alice's ios device in order to request contact sync (which returns the first 413 error).
then alice clicks resend on the 401'd message, which re-transmits the stale encrypted non-prekey message. if bob and alice ios devices exchanged messages between unlink and relink, bob has probably already trashed the old session upon accepting alice's new identity.
then alice tries to message bob normally again (not a resend but a new message) and does attempt to fetch new keys, again getting a 413 in this case. Several minutes later she tries again and succeeds. life proceeds as normal.
The text was updated successfully, but these errors were encountered:
Currently, a 401 or 403 response when sending a message is treated similarly to network disruption. The resend link is presented, but and the ciphertext is saved for re-transmission. If the client was re-linked in the meantime, then that ciphertext is encrypted with stale/deleted session data.
https://gist.github.com/anonymous/67b8bebf25b4651675c3b4cc8e4ebcfc#file-debuglog-txt-L168
reading from the top of the log:
alice installs a fresh desktop and links it
alice and bob message each other establishing sessions between all devices involved.
alice unlinks (or reinstalls and re-registers)
alice desktop attempts to send a message while unlinked, gets a 401 and offers an option to resend
after reinstall/relink, alice-desktop clears the session store. this is evidenced by the fact that it attempts to get new keys for alice's ios device in order to request contact sync (which returns the first 413 error).
then alice clicks resend on the 401'd message, which re-transmits the stale encrypted non-prekey message. if bob and alice ios devices exchanged messages between unlink and relink, bob has probably already trashed the old session upon accepting alice's new identity.
then alice tries to message bob normally again (not a resend but a new message) and does attempt to fetch new keys, again getting a 413 in this case. Several minutes later she tries again and succeeds. life proceeds as normal.
The text was updated successfully, but these errors were encountered: