Edited file fails to transmit #559

Open
opened 2 months ago by sarah · 1 comments
sarah commented 2 months ago
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 2 months ago
sarah added this to the Cwtch Beta (In Progress) project 2 months ago
sarah added the
cwtch-beta-1.10
label 2 months ago
sarah added the
bugbash
label 2 months ago
Poster
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).
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#559
Loading…
There is no content yet.