Bug 428060

Summary: problem copying file from Android KDE Connect 1.14.2 to Leap 15.2 kdeconnect-kde 20.04.2-lp152.2.3.1
Product: [Applications] kdeconnect Reporter: Hans-Rudi Denzler <hr.denzler>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: Axel.Keller, i.proudler
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kdiff3 mail.bin copy.bin
copy.bin
mail.bin

Description Hans-Rudi Denzler 2020-10-21 13:12:26 UTC
Created attachment 132602 [details]
kdiff3 mail.bin copy.bin

SUMMARY
I wanted to copy a jpg-file with Dolphin from Galaxy Note 9 with Android 10
(1. Sept 2020 patch) to my home directory. Only the first 0x10000 bytes are correct.

STEPS TO REPRODUCE
1. copy file with Dolphin
2. xxd file.jpg >copy.bin
3. mail file  to Leap 15.2
4. xxd file.jpg >mail.bin
5. kdiff3 mail.bin copy.bin

OBSERVED RESULT
The first 65536 bytes are correct, the rest is messed up

EXPECTED RESULT
copy.bin == mail.bin

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap 15.2
(available in About System)
KDE Plasma Version: 5.18.5 
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
Comment 1 Hans-Rudi Denzler 2020-10-21 13:34:47 UTC
Created attachment 132604 [details]
copy.bin

Created can be found 3 times in copy.bin
Only once in mail.bin
Comment 2 Hans-Rudi Denzler 2020-10-21 13:36:26 UTC
Created attachment 132605 [details]
mail.bin

The expected result
Comment 3 Axel Keller 2021-08-22 17:59:33 UTC
I have the same problem with Leap 15.3

A simple text file longer than 65.536 Bytes length is messed up:

     | Byte 1 ... Byte 65.536 | Byte 1 ... (EOF - 65.536) |
Comment 4 Ian Proudler 2021-09-04 16:20:48 UTC
SUMMARY
I used KDEconnect to copy a jpg-file with Dolphin from Galaxy A20e with Android 11. gimp says 
"Corrupt JPEG data: 10812 extraneous bytes before marker 0xd1
Opening 'Dolphin_20210904_100424.jpg' failed: JPEG image plug-in could not open image (1. Sept 2020 patch) to my home directory. Only the first 0x10000 bytes are correct.
JPEG datastream contains no image"

I emailed the picture to myself. I can view the picture OK. cmp says
"email_20210904_100424.jpg Dolphin_20210904_100424.jpg differ: byte 32769, line 110"



STEPS TO REPRODUCE
1. connect to phone using KDEconnect
2. copy file with Dolphin to PC
3. open using gimp
4. mail file  to PC (Thunderbird) save file
5. cmp file1.jpg file2.jpg

OBSERVED RESULT
gimp says file is corrupt. cmp says files are different.

EXPECTED RESULT
gimp should display file. cmp should say files are indetical.

SOFTWARE/OS VERSIONS
Linux: Kubuntu 20.04
KDE Plasma Version: 5.18.5 
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
KDEconnect app on phone: 1.17.0
KDEconnect on PC: 1.4-0ubuntu5


ADDITIONAL INFORMATION