Bug 432749 - Transfer file from android to pc restarts file at 32KiB, skips last 32 KiB in 1.16.0
Summary: Transfer file from android to pc restarts file at 32KiB, skips last 32 KiB in...
Status: RESOLVED DUPLICATE of bug 405847
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-10 18:10 UTC by Tijmen Stam/IIVQ
Modified: 2021-03-18 23:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A GPX file copied over KDE Connect (668.66 KB, application/gpx+xml)
2021-02-10 18:10 UTC, Tijmen Stam/IIVQ
Details
The same GPX file, when copied over USB (no KDE Connect involvement) (668.66 KB, application/gpx+xml)
2021-02-10 18:17 UTC, Tijmen Stam/IIVQ
Details
A JPG file copied from tablet after update to KDE Connect 1.16 (239.81 KB, image/jpeg)
2021-02-10 18:21 UTC, Tijmen Stam/IIVQ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tijmen Stam/IIVQ 2021-02-10 18:10:52 UTC
Created attachment 135565 [details]
A GPX file copied over KDE Connect

SUMMARY
Files copied from Android device to PC using Dolphin → devices → <devicename> → place in directory tree, have their file contents mashed up.
The file starts normal, then after 32KiB restarts, and the last 32KiB is missing.
This seems to be highly reproducible.

STEPS TO REPRODUCE
I have KDE Connect set up on my pc, phone, and tablet.
1. On my pc, I open Dolphin, and under "Devices" go to "IIVQphone", or "kdeconnect://6148fde336752e14/". 
2. I then navigate to the appropriate folder, in this case "/run/user/1000/6148fde336752e14/SD card/Android/data/net.osmand.plus/files/tracks/rec/"
3. I copy a GPX file over to my PC

OBSERVED RESULT
4. Any GPX-accepting application complains GPX is malformed
5. Upon opening, I see the GPX looks like attached "2021-01-26_14-06_Tue_copied_over_KDE_Connect.gpx". The file content is exactly the same size as on device, but "restarts" after 32KiB. The last 32KiB of the source file are missing.
6. This happens with other files copied too, both on SD card and on device itself.

EXPECTED RESULT
Files copied are copied byte-for-byte as on device

SOFTWARE/OS VERSIONS

Computer
Linux/KDE Plasma: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
KDEconnect-app: v1.0
KDEconnect-cli: v1.4.0
KDEconnect-handler: v1.4.0

Phone:
Moto G5 Plus (XT1685)
Android 8.1.0
Kernel 3.18.71-perf-g7b625a0
KDE connect 1.16.0

Tablet:
Lenovo TB-8504X
Android 8.1.0
Kernel 3.18.71
KDE connect 1.14.2 (originally)

ADDITIONAL INFORMATION
I tried the same, copying files from my tablet which had KDE connect 1.14.2. Here the files did not restart.
When I updated this to KDE connect 1.16.0, it had the same bug. It seems to have appeared between 1.14.2 and 1.16.0.
Comment 1 Tijmen Stam/IIVQ 2021-02-10 18:11:48 UTC
Someone else has a problem that might or might not have been the same bug, see https://forum.kde.org/viewtopic.php?f=18&t=169649&p=442762#p442762
Comment 2 Tijmen Stam/IIVQ 2021-02-10 18:14:19 UTC
To clarify: I tested this with a few GPX files, a few JPG files and a few .3GP files. They all had the same problem, repeating the start after exactly 32768 byte and having their last 32768 byte truncated.
Comment 3 Tijmen Stam/IIVQ 2021-02-10 18:17:51 UTC
Created attachment 135566 [details]
The same GPX file, when copied over USB (no KDE Connect involvement)
Comment 4 Tijmen Stam/IIVQ 2021-02-10 18:21:33 UTC
Created attachment 135567 [details]
A JPG file copied from tablet after update to KDE Connect 1.16

The file header and data repeats after 0x08000 (32KiB)
Comment 5 Nicolas Fella 2021-03-18 23:55:58 UTC

*** This bug has been marked as a duplicate of bug 405847 ***