Edited file fails to transmit #559

Open
opened 2022-10-20 18:56:24 +00:00 by sarah · 1 comment
Owner

"Changing file content before contact accepts the sent file causes file transmission to never complete. The file is still created in the receiver's device, with the content being five 0x00s. There's no indication of SHA512 mismatch in what was received / written to file.

One option could be to copy the file into a temp file in ~/.cwtch/ to ensure atomic file transfer operation."

"Changing file content before contact accepts the sent file causes file transmission to never complete. The file is still created in the receiver's device, with the content being five `0x00`s. There's no indication of SHA512 mismatch in what was received / written to file. One option could be to copy the file into a temp file in ~/.cwtch/ to ensure atomic file transfer operation."
sarah added the
bug
label 2022-10-20 18:56:44 +00:00
sarah added this to the Cwtch Beta (In Progress) project 2022-10-20 18:56:53 +00:00
sarah added the
cwtch-beta-1.10
label 2022-10-20 18:57:06 +00:00
sarah added the
bugbash
label 2022-10-22 15:56:34 +00:00
Author
Owner

Thinking about this: I believe the correct fix is for Cwtch UI to check the hash of the file and if it changes to alert the sender.

We currently don't distinugish between error and malicious corruption on the receiver side, and I don't think there is a sound way of doing this (we likely should display a "failed to download" message after some amount of time without a valid chunk packet).

Thinking about this: I believe the correct fix is for Cwtch UI to check the hash of the file and if it changes to alert the sender. We currently don't distinugish between error and malicious corruption on the receiver side, and I don't think there is a sound way of doing this (we likely should display a "failed to download" message after some amount of time without a valid chunk packet).
sarah added
cwtch-beta-1.11
and removed
cwtch-beta-1.10
labels 2022-12-16 18:02:43 +00:00
sarah added the
scheduled
label 2023-03-10 17:43:01 +00:00
sarah removed the
cwtch-beta-1.11
label 2023-03-27 19:16:24 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#559
No description provided.