[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2022-02-03 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #78 from Nicolas Fella  ---
Fixed with
https://invent.kde.org/network/kdeconnect-android/-/merge_requests/275

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2022-01-12 Thread Riccardo Robecchi
https://bugs.kde.org/show_bug.cgi?id=405847

Riccardo Robecchi  changed:

   What|Removed |Added

 CC||cristo...@hotmail.com

--- Comment #77 from Riccardo Robecchi  ---
*** Bug 447424 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2022-01-10 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #76 from Nicolas Fella  ---
(In reply to Nagy Tibor from comment #73)
> Has anyone tried to bump the SSHD lib version on the Android side? It's
> missing 7 years worth of bugfixes from upstream. The version KDE Connect
> uses is around 2000 commits behind the latest master.

We noticed that the sshd lib is outdated a couple of years ago. However
upgrading turned out to be tricky since newer versions required specific Java
APIs (in parcticular java.nio.*) that isn't available in older Android
versions. That's why it wasn't updated. However by now things may have changes
and/or it might be okay to drop support for those old versions, so the whole
thing should be reevaluated

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2022-01-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

mail6543...@yahoo.com.tw changed:

   What|Removed |Added

 CC||mail6543...@yahoo.com.tw

--- Comment #75 from mail6543...@yahoo.com.tw ---
For newer Android (> Kitkat), kdeconnect-android's SFTP implementation dose not
support seeking to any non-current position.

It just ignores the offset and starts over the beginning of the file.

Here's the MR
https://invent.kde.org/network/kdeconnect-android/-/merge_requests/275 for
random reads.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2022-01-09 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #74 from Philippe ROUBACH  ---
This problem exists since 2014-04-29 (my bug report
https://bugs.kde.org/show_bug.cgi?id=334080). 6 years !

Where is the problem ?  Not enought man power, not enough knowledge, android
problem ? what ?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2022-01-08 Thread Nagy Tibor
https://bugs.kde.org/show_bug.cgi?id=405847

Nagy Tibor  changed:

   What|Removed |Added

 CC||xnagyti...@gmail.com

--- Comment #73 from Nagy Tibor  ---
Has anyone tried to bump the SSHD lib version on the Android side? It's missing
7 years worth of bugfixes from upstream. The version KDE Connect uses is around
2000 commits behind the latest master.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-07-13 Thread Podagric
https://bugs.kde.org/show_bug.cgi?id=405847

Podagric  changed:

   What|Removed |Added

 CC||kde.podag...@slmail.me

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-07-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

patr...@gmail.com changed:

   What|Removed |Added

 CC||patr...@gmail.com

--- Comment #72 from patr...@gmail.com ---
(In reply to Nicolas Fella from comment #61)
> 32k seems to be a magic number here, interesting.
> 
> A "problem" is that KDE Connect does not do the file operations itself but
> just delegates to sshfs on the desktop and an SFTP lib on Android, so I
> suspect the issue is in on of those. No idea currently which one though

I also lost some files due to "move" instead of "copy" operation what pushed me
here.

Alternative solution which I am using is to transfer files with "primitive
ftpd" App which also has option to set up a SFTP server which I am manually
mounting by sshfs with CMD:
`sshfs -o
reconnect,sshfs_sync,ServerAliveInterval=15,ServerAliveCountMax=3,nonempty -C`

I am doing this since a year or even more and as far as I remember I have never
received corrupted files.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-06-20 Thread Oleg
https://bugs.kde.org/show_bug.cgi?id=405847

Oleg  changed:

   What|Removed |Added

 CC||mehanoid...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-05-26 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||brightontapiw...@gmail.com

--- Comment #71 from Nicolas Fella  ---
*** Bug 437697 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-05-02 Thread Francesco
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #70 from Francesco  ---
I must partially retract my enthusiasm. With the direct_io option seems not
completely usable.
It works if copy a file from sshfs to local with dolphin. 
Doesn't work if I open a PDF with okular on the remote folder or run a pdf2ps
command on it.
Very strange, md5sum on the remote file generates a correct hash and a cat from
remote to a local fetching a correct file 

Also with direct_io the tool vbindiff used to compare the remote file and a
local copy show a strange behaviour: when scrolling the content the remote file
is stop and doesn't leave firsts 32k bytes

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-05-02 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #69 from Nicolas Fella  ---
(In reply to Francesco from comment #68)
> not a great solution, but adding '-o direct_io' to the sshfs options solve
> the corruption issue
> 
> you can see the sshfs options used by kdeconnect with 
> ps aux | grep sshfs

Interesting find. Do you know what kind of other implications using direct_io
might have?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-05-01 Thread Francesco
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #68 from Francesco  ---
not a great solution, but adding '-o direct_io' to the sshfs options solve the
corruption issue

you can see the sshfs options used by kdeconnect with 
ps aux | grep sshfs

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-05-01 Thread Francesco
https://bugs.kde.org/show_bug.cgi?id=405847

Francesco  changed:

   What|Removed |Added

 CC||muzi...@gmail.com

--- Comment #67 from Francesco  ---
I can confirm this bug, first 32k  bytes seems be repeated after 32767
position, then in some case seems to be a simple shift of 32k in other cases it
starts in the same mode but then is much like a random corruption.

My configuration is:

PC:
Debian 10.9
kdeconnect 1.3.3-2 
sshfs 2.10+repack-2

Android Device:
Android 8.1.0
kdeconnect 1.16.0

On another device (an ebook reader with Android 4.0.4) the same kdeconnect app
works, I cannot reproduce this bug.

If the file is sent from android to PC as a shared content no corruption is
happen

I think that the kdeconnect application on Linux side could be only a frontend
for sshfs, I can connect to my device (The smartphone with Android 8) with
filezilla and I can't reproduce the problem, file are fetched without
corruption

directories shared are mounted usually at /run/user/1000/{device id}
transfer using dolphin or cp produce the same result

if I mount the directory manually with sshfs the issue still happens

tips to trying a connection with filezilla:
- the connection between sshfs and the kdeconnect app happens with a
ceretificate authentication, the username is "kdeconnect" 
- the private key is saved here ~/.config/kdeconnect/privateKey.pem
- for using this key for authentiation with filezilla you need to convert this
in  an RSA key with
openssl rsa -in privateKey.pem -out privateRSAKey.pem
and then in a ppk key with
puttygen privateRSAKey.pem -o key.ppk
- the port used by kdeconnect app is 1739

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-22 Thread Sebastian H.
https://bugs.kde.org/show_bug.cgi?id=405847

Sebastian H.  changed:

   What|Removed |Added

 CC||misc-bugs...@omoco.de

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-20 Thread Stephan Olbrich
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #66 from Stephan Olbrich  ---
(In reply to Mark Fraser from comment #65)
> (In reply to Nicolas Fella from comment #61)
> > 32k seems to be a magic number here, interesting.
> > 
> > A "problem" is that KDE Connect does not do the file operations itself but
> > just delegates to sshfs on the desktop and an SFTP lib on Android, so I
> > suspect the issue is in on of those. No idea currently which one though
> 
> If this is the case, why do older versions work OK? 1.10.1 works fine, but
> anything newer than that corrupts files?

I just tried again and I can't reproduce the bug with 1.16.0
But looking at the comments in this bug and the duplicates there doesn't seem
to be a consensus which versions are buggy.

Two ideas: 
Is there any way to get the credentials out of kdeconnect (either side) and
connect to the phone with another sftp client?
Searching for sshfs and corrupted files leads to some issues which were related
to cache. Nothing which sound related to this problem but maybe worth a try. Is
there any way to manipulate the commandline options to sshfs to add "-o
cache=no"?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-20 Thread Mark Fraser
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #65 from Mark Fraser  ---
(In reply to Nicolas Fella from comment #61)
> 32k seems to be a magic number here, interesting.
> 
> A "problem" is that KDE Connect does not do the file operations itself but
> just delegates to sshfs on the desktop and an SFTP lib on Android, so I
> suspect the issue is in on of those. No idea currently which one though

If this is the case, why do older versions work OK? 1.10.1 works fine, but
anything newer than that corrupts files?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-19 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #64 from Nicolas Fella  ---
(In reply to Gauthier from comment #63)
> (In reply to Nicolas Fella from comment #61)
> > 32k seems to be a magic number here, interesting.
> > 
> > A "problem" is that KDE Connect does not do the file operations itself but
> > just delegates to sshfs on the desktop and an SFTP lib on Android, so I
> > suspect the issue is in on of those. No idea currently which one though
> 
> Is that true even in the case when the transfer is done through Dolphin? 

Yes, sshfs mounts the phone content as a local file system and dolphin accesses
that like a regular file

> 
> I'm asking because actually there is no corruption if the files are sent
> from the phone to desktop (by that I mean sending the file using share via
> KDEConnect on the phone). The corruption only occurs if the files are
> transferred from the phone to desktop using Dolphin.

The Share feature has a completely different implementation so it makes sense
that it is not affected

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-19 Thread Gauthier
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #63 from Gauthier  ---
(In reply to Nicolas Fella from comment #61)
> 32k seems to be a magic number here, interesting.
> 
> A "problem" is that KDE Connect does not do the file operations itself but
> just delegates to sshfs on the desktop and an SFTP lib on Android, so I
> suspect the issue is in on of those. No idea currently which one though

Is that true even in the case when the transfer is done through Dolphin? 

I'm asking because actually there is no corruption if the files are sent from
the phone to desktop (by that I mean sending the file using share via
KDEConnect on the phone). The corruption only occurs if the files are
transferred from the phone to desktop using Dolphin.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-18 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||mihai.os...@gmail.com

--- Comment #62 from Nicolas Fella  ---
*** Bug 433697 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-18 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||nicolas.fe...@gmx.de

--- Comment #61 from Nicolas Fella  ---
32k seems to be a magic number here, interesting.

A "problem" is that KDE Connect does not do the file operations itself but just
delegates to sshfs on the desktop and an SFTP lib on Android, so I suspect the
issue is in on of those. No idea currently which one though

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-03-18 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||i...@iivq.net

--- Comment #60 from Nicolas Fella  ---
*** Bug 432749 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2021-02-13 Thread Gauthier
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #59 from Gauthier  ---
Just wondering, is anyone currently working on this issue (who has developer
skills unlike me :))?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-11-09 Thread Stephan Olbrich
https://bugs.kde.org/show_bug.cgi?id=405847

Stephan Olbrich  changed:

   What|Removed |Added

 CC||stephanolbr...@gmx.de

--- Comment #58 from Stephan Olbrich  ---
(In reply to kafe69 from comment #56)
> I can confirm the bug with KDE connect 1.14.2 on Android 9 and 1.3.3 on
> opensuse 15.1 when transferring gpx files from the phone to the desktop
> using dolphin on the desktop.
> No corruption occurs when sending the files from the phone using KDE connect
> "Send files".
> As the gpx files have a human readeable contents I observed the following:
> 1. The first 65536 bytes of the transferred file are correct.
> 2. From byte 65537 the contents starts over with the beginning of the
> original file
> 3. The rest of the file continues correctly but is cut at the end so that
> the file size remains the same as the original.

I can confirm this with KDE connect 1.15.1 on Android and 1.4-0ubuntu5 on
Kubuntu.
The only difference I see is that the corruption starts after 32768 bytes.

Tested with a binary file created with:
import numpy as np
dat = np.arange(100)
dat.astype('int32').tofile("filename.bin")

and comparing "hexdump -C filename.bin" before and after transfer.

Pushing the same file from the phone to th PC with KDE connect works without
corruption.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-11-04 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

domi...@schuermann.eu changed:

   What|Removed |Added

 CC||domi...@schuermann.eu

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-10-16 Thread Roman Pletka
https://bugs.kde.org/show_bug.cgi?id=405847

Roman Pletka  changed:

   What|Removed |Added

 CC||ro...@pletka.ch

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-06-02 Thread meku
https://bugs.kde.org/show_bug.cgi?id=405847

meku  changed:

   What|Removed |Added

 CC|kde.b...@meku.org   |

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-06-02 Thread Simon Redman
https://bugs.kde.org/show_bug.cgi?id=405847

Simon Redman  changed:

   What|Removed |Added

 CC||hgc...@gmail.com

--- Comment #57 from Simon Redman  ---
*** Bug 413259 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-06-01 Thread Daniel Jerolm
https://bugs.kde.org/show_bug.cgi?id=405847

Daniel Jerolm  changed:

   What|Removed |Added

 CC||daniel.jer...@web.de

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-05-17 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

kaf...@gmx.net changed:

   What|Removed |Added

 CC||kaf...@gmx.net

--- Comment #56 from kaf...@gmx.net ---
I can confirm the bug with KDE connect 1.14.2 on Android 9 and 1.3.3 on
opensuse 15.1 when transferring gpx files from the phone to the desktop using
dolphin on the desktop.
No corruption occurs when sending the files from the phone using KDE connect
"Send files".
As the gpx files have a human readeable contents I observed the following:
1. The first 65536 bytes of the transferred file are correct.
2. From byte 65537 the contents starts over with the beginning of the original
file
3. The rest of the file continues correctly but is cut at the end so that the
file size remains the same as the original.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-05-09 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||criss...@gmx.de

--- Comment #55 from Nicolas Fella  ---
*** Bug 421176 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-04-18 Thread Pete
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #54 from Pete  ---
(In reply to Gauthier from comment #51)
> Sorry I realise I had forgotten to put the version of KDE Connect on my
> phone: it is 1.13.7
> 
> Is there a page where we should make this info more public to make users
> aware of the risk?

I actually agree with you. I think there should be a warning on the kdeconnect
page. I lost quite a few files because I used cut instead of copy in dolphin
and realized too late they are all broken.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-04-18 Thread Pete
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #53 from Pete  ---
Confirmed for newer versions as well: 


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.10 with installed kubuntu-desktop and eaon kubuntu
backports ppa
KDEConnect: 1.4.0 ubuntu from kubuntu backports
KDEConnect-Android: 1.14

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4
Kernel Version: 5.6.4-050604-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15,5 GiB of RAM

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-04-18 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||k...@kthxbye.us

--- Comment #52 from Nicolas Fella  ---
*** Bug 420214 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-04-09 Thread Silvio
https://bugs.kde.org/show_bug.cgi?id=405847

Silvio  changed:

   What|Removed |Added

 CC||silvio.mon...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-03-22 Thread Gauthier
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #51 from Gauthier  ---
Sorry I realise I had forgotten to put the version of KDE Connect on my phone:
it is 1.13.7

Is there a page where we should make this info more public to make users aware
of the risk?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-03-09 Thread Gauthier
https://bugs.kde.org/show_bug.cgi?id=405847

Gauthier  changed:

   What|Removed |Added

 CC||achat1...@free.fr

--- Comment #50 from Gauthier  ---
I have just transferred about 20 music and 2 videos from my phone to desktop
using kdeconnect...all corrupted...sadly it was a move and not a copy.

If someone has any idea of how to recover those files, that would be very
appreciated. 

I think people should really be made aware of this problem.

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-40-generic
KDEconnect: 1.4-0ubuntu2~ubuntu19.10~ppa1
Phone: Lenovo p2
Andrioid 9 (Lineage OS 16)
I had the same problem on android 7.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-03-04 Thread Mark Fraser
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #49 from Mark Fraser  ---
Still getting corrupted files using 1.4-0ubuntu2~ubuntu19.10~ppa1 and 1.13.6 on
Samsung S10 with Android 10.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2020-02-03 Thread Bernd
https://bugs.kde.org/show_bug.cgi?id=405847

Bernd  changed:

   What|Removed |Added

 CC||prof7...@gmail.com

--- Comment #48 from Bernd  ---
I found the easiest way to provoke it is to enable the preview in dolphin and
then open a folder with a ton of images. Dolphin will be busy for a while
trying to generate previews and if you move around the mouse and hover above
some images while the previews are still loading it will become even more busy
because now it will also try to extract the exif data from the files to show in
the side panel along with a larger preview image.

eventually there will be a bunch of images whose preview is missing. If you try
to copy this file to the desktop it will be corrupted. You can cose dolphin or
F5 multiple times, the same file will appear to stay in this corrupted state.

It is corrupted in the file system cache. If you drop caches and buffers and
try to copy it again it will most likely succeed.

The only reliable way I have found to copy a folder with lots of files and
avoiud corruption is to close dolphin, open a console, then 

sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" 

to remove any corrupted file fragments left over in the caches and then copy
the entire folder using cp -r or midnight commander in the console, that way it
will not try to open more than one file at a time and then no corruption will
happen.

I have observed this with two different PCs (Kubuntu 18.04 and Kubuntu 19.10)
and the Android version 1.13.7 from Play Store. 

My phone identifies itself as Galaxy S7, Android 8.0.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-12-25 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #47 from Yuriy Vidineev  ---
Looks like it depends on Android version. I've just checked on an older phone
and it works like a charm!

Works:
Galaxy Note 3, Android 5.0
KDE Connect 1.13.5 from Google Play
KDE Connect 1.4-0xneon+18.04+bionic+build23  on laptop with KDE Neon

Doesn't work
Galaxy Note 10, Android 9
KDE Connect 1.13.5 from F-Droid
KDE Connect 1.4-0xneon+18.04+bionic+build23  on laptop with KDE Neon

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-12-23 Thread Erik Duisters
https://bugs.kde.org/show_bug.cgi?id=405847

Erik Duisters  changed:

   What|Removed |Added

 CC||schweineschwa...@web.de

--- Comment #46 from Erik Duisters  ---
*** Bug 415264 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-12-17 Thread hexchain
https://bugs.kde.org/show_bug.cgi?id=405847

hexchain  changed:

   What|Removed |Added

 CC||i...@hexchain.org

--- Comment #45 from hexchain  ---
I'm having the same issue. kdeconnect 1.4 on Arch Linux Plasma, and 1.13.5 on
Pixel 2 XL.

kdeconnectd shows the following log lines while pulling files:

kdeconnect.plugin.sftp: stdout: "Warning: Permanently added
'[192.168.xx.xx]:1741' (RSA) to the list of known hosts.\r\n"   
kdeconnect.plugin.sftp: stdout: "Corrupted MAC on input.\r\n"
kdeconnect.plugin.sftp: stdout: "ssh_dispatch_run_fatal: Connection to
192.168.xx.xx port 1741: message authentication code incorrect\r\n" 
kdeconnect.plugin.sftp: stdout: "remote host has disconnected\n"
kdeconnect.plugin.sftp: stdout: "Warning: Permanently added
'[192.168.xx.xx]:1741' (RSA) to the list of known hosts.\r\n"   
kdeconnect.plugin.sftp: stdout: "Corrupted MAC on input.\r\n"
kdeconnect.plugin.sftp: stdout: "ssh_dispatch_run_fatal: Connection to
192.168.xx.xx port 1741: message authentication code incorrect\r\n" 
kdeconnect.plugin.sftp: stdout: "remote host has disconnected\n"
kdeconnect.plugin.sftp: stdout: "Warning: Permanently added
'[192.168.xx.xx]:1741' (RSA) to the list of known hosts.\r\n"
kdeconnect.plugin.sftp: stdout: "Corrupted MAC on
input.\r\nssh_dispatch_run_fatal: Connection to 192.168.xx.xx port 1741:
message authentication code incorrect\r\n"
kdeconnect.plugin.sftp: stdout: "remote host has disconnected\n"

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-12-16 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #44 from Yuriy Vidineev  ---
I've updated to KDE connect 1.4-0xneon+18.04+bionic+build23 on laptop and
1.13.5 on a phone (Galaxy Note 8, stock Android 9) - still can easily reproduce
it on files > 3Mb

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-12-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

dutchgu...@hotmail.com changed:

   What|Removed |Added

 CC||dutchgu...@hotmail.com

--- Comment #43 from dutchgu...@hotmail.com ---
Same issue here. It works with 1.11, but the moment i switch to 1.12 it breaks.
Using 1.3.5 on openSUSE linux leap 15.1.

Not sure whether it is related but since 1.12 you need to define the storage
locations manually where before it was done automatically with pre-defined
names. 

Showing of the directory content in 1.11 and before is also much faster than
from 1.12 onwards. 

Sending of files from phone to linux works fine even in the higher versions. 

Really would like the other way around working again as that makes it easier to
copy large amounts of files from the phone to my main system through dolphin.

I just tried 1.13.5 but still issue. Switching back to 1.11 and it works fine.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-11-26 Thread Nicolas RAOUL
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas RAOUL  changed:

   What|Removed |Added

 CC|nicolas.ra...@gmail.com |

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-11-26 Thread ian
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #42 from ian  ---
(In reply to Alexander Potashev from comment #41)
> (In reply to ian from comment #40)
> > Same problem here of corrupted mp4 files copied via Dolphin (Kubuntu).
> 
> What versions of KDE Connect do you use?

Same problem in Kubuntu 18.04 and 19.04 with KDE Connect for Android 9 latest
version. The only one that works is the 1.10.1 (as mentioned in the comments)
but I didn't try those just after of before this one. Also I only tried the
most recent versions from Play Store.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-11-26 Thread Alexander Potashev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #41 from Alexander Potashev  ---
(In reply to ian from comment #40)
> Same problem here of corrupted mp4 files copied via Dolphin (Kubuntu).

What versions of KDE Connect do you use?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-11-26 Thread ian
https://bugs.kde.org/show_bug.cgi?id=405847

ian  changed:

   What|Removed |Added

 CC||i...@webian.it

--- Comment #40 from ian  ---
Same problem here of corrupted mp4 files copied via Dolphin (Kubuntu).

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-10-10 Thread Mau
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #39 from Mau  ---
Let's vote this bug in order to rise severity. I'm not updating since v1.10.1.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-10-10 Thread Mark Fraser
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #38 from Mark Fraser  ---
(In reply to Yuriy Vidineev from comment #37)
> I still have issue with corrupted JPEG on kdeconnect android 1.13.2 and
> 1.3.5-0xneon+18.04+bionic+build21 desktop app

Same here 1.3.5-0ubuntu1~ubuntu19.04~ppa1 and 1.13.2, tried to copy a 2.9MB
JPEG from phone to computer and it is corrupted.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-10-09 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #37 from Yuriy Vidineev  ---
I still have issue with corrupted JPEG on kdeconnect android 1.13.2 and
1.3.5-0xneon+18.04+bionic+build21 desktop app

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-09-17 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #36 from zhangchi...@gmail.com ---
(In reply to Alexander Potashev from comment #34)
> I tried copying 200 JPEGs from phone to laptop over KDE Connect and could
> not reproduce this, SHA-1 checksums for all files are identical.
> 
> kdeconnect android 1.12.93
> kdeconnect kde 1.3.3
> 
> Operating System: Fedora 30
> KDE Plasma Version: 5.15.5
> KDE Frameworks Version: 5.59.0
> Qt Version: 5.12.4
> Kernel Version: 5.1.16-300.fc30.x86_64
> OS Type: 64-bit
> Processors: 2 × Intel® Celeron® CPU B800 @ 1.50GHz
> Memory: 3,8 ГиБ
> 
> Phone: Xiaomi Mi A1
> OS: Android 9.0

Tried again just now with kdeconnect android 1.13. For me, all the JPEG files
are intact (verified with `sha1sum` in `adb shell` and Dolphin), but DNG files
are still corrupt.

It could have something to do with the file size. My JPEGs top at 7.6 MB, while
the DNG files are 22.1 MB each.

Similarly for my current configuration:

Android side:
Android 8.0.0
kdeconnect android 1.13
Phone: ASUS ZenFone 4 Pro (Z01GD)

Desktop side:
kdeconnect kde 1.3.3
SSHFS version 2.10.0
FUSE library version: 2.9.9
fusermount version: 2.9.9
using FUSE kernel interface version 7.19
Operating System: Debian testing 
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3
Kernel Version: 4.19.0-5-amd64
OS Type: 64-bit
Processors: Intel(R) Xeon(R) E-2124G CPU @ 3.40GHz
Memory: 15839.1 MB total

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-09-17 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=405847

zhangchi...@gmail.com changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #35 from zhangchi...@gmail.com ---
*** This bug has been confirmed by popular vote. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-09-17 Thread Alexander Potashev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #34 from Alexander Potashev  ---
I tried copying 200 JPEGs from phone to laptop over KDE Connect and could not
reproduce this, SHA-1 checksums for all files are identical.

kdeconnect android 1.12.93
kdeconnect kde 1.3.3

Operating System: Fedora 30
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4
Kernel Version: 5.1.16-300.fc30.x86_64
OS Type: 64-bit
Processors: 2 × Intel® Celeron® CPU B800 @ 1.50GHz
Memory: 3,8 ГиБ

Phone: Xiaomi Mi A1
OS: Android 9.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-09-13 Thread Florian
https://bugs.kde.org/show_bug.cgi?id=405847

Florian  changed:

   What|Removed |Added

 CC||kde-b...@pyoworks.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-31 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=405847

Nicolas Fella  changed:

   What|Removed |Added

 CC||nicolas.ra...@gmail.com

--- Comment #33 from Nicolas Fella  ---
*** Bug 411473 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-18 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #32 from Philippe ROUBACH  ---
(In reply to Philippe ROUBACH from comment #26)
> openSuse Argon 15.1
> Samsung S2 Plus, lineage os (android 7.1.2)
> 
> kde apps 19.04.3
> kde plasma 5.16.3
> kde frameworks 5.60.0
> kde qt 5.13.0
> 
> kdeconnect android 1.12.93
> kdeconnect kde 1.3.5
> 
> I copy five jpg files from phone to pc without any problem.

i made an error.

files are corrupted but it is not visible. files have a "libpng error: IDAT:
CRC error"

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-15 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #31 from Yuriy Vidineev  ---
(In reply to Philippe ROUBACH from comment #30)
> In my case it's very simple to check corruption of jpg files. 
> Dolphin cannot compute the preview and if i open it with gwenview then a
> part of the image is gray.

I have exactly the same effects

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-15 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #30 from Philippe ROUBACH  ---
In my case it's very simple to check corruption of jpg files. 
Dolphin cannot compute the preview and if i open it with gwenview then a part
of the image is gray.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-15 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #29 from Yuriy Vidineev  ---
I usually compare md5 sum on PC and Android (using HashDroid)

(In reply to Alexander Potashev from comment #28)
> (In reply to Philippe ROUBACH from comment #27)
> > I copy six jpg files from phone to pc => three corrupt jpg files.
> 
> If a JPEG file is corrupt, you might not always notice it. It's better to
> compare the whole file byte-by-byte. For example, transfer a file to your
> computer via KDE Connect and then the same file using another application,
> e.g. on Whatsapp or Telegram, or upload to Google Drive, or send it to
> yourself in an email. Then compare the two copies with "diff" command or by
> checking their MD5/SHA1 checksums.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-15 Thread Alexander Potashev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #28 from Alexander Potashev  ---
(In reply to Philippe ROUBACH from comment #27)
> I copy six jpg files from phone to pc => three corrupt jpg files.

If a JPEG file is corrupt, you might not always notice it. It's better to
compare the whole file byte-by-byte. For example, transfer a file to your
computer via KDE Connect and then the same file using another application, e.g.
on Whatsapp or Telegram, or upload to Google Drive, or send it to yourself in
an email. Then compare the two copies with "diff" command or by checking their
MD5/SHA1 checksums.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-15 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #27 from Philippe ROUBACH  ---
openSuse Argon 15.1
Samsung S7, android 8.0

kde apps 19.04.3
kde plasma 5.16.3
kde frameworks 5.60.0
kde qt 5.13.0

kdeconnect android 1.12.93
kdeconnect kde 1.3.5

I copy six jpg files from phone to pc => three corrupt jpg files.

what is the difference between lineage os 14.1 (<=> android 7.1.2) and Samsung
android 8.0 ?

this is the second time i check that lineage os works better with kdeconnect.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-15 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #26 from Philippe ROUBACH  ---
openSuse Argon 15.1
Samsung S2 Plus, lineage os (android 7.1.2)

kde apps 19.04.3
kde plasma 5.16.3
kde frameworks 5.60.0
kde qt 5.13.0

kdeconnect android 1.12.93
kdeconnect kde 1.3.5

I copy five jpg files from phone to pc without any problem.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-14 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #25 from Philippe ROUBACH  ---
(In reply to Philippe ROUBACH from comment #24)

> also no problem with Bluetooth.

android + Astro bluetooth (obex ftp)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-14 Thread Philippe ROUBACH
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #24 from Philippe ROUBACH  ---
(In reply to Yuriy Vidineev from comment #23)
> Small note: I see file corruption when copy from phone to PC, but I never
> saw corrupted files when copy from PC to a phone

i confirm this.

also no problem with Bluetooth.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-13 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #23 from Yuriy Vidineev  ---
Small note: I see file corruption when copy from phone to PC, but I never saw
corrupted files when copy from PC to a phone

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-11 Thread Vangelis
https://bugs.kde.org/show_bug.cgi?id=405847

Vangelis  changed:

   What|Removed |Added

 CC||cyberan...@gmail.com

--- Comment #22 from Vangelis  ---
I experience the same problem when copying GPX files (clear text XML format)
that I have recorded with my GPS.

When copying the .gpx files from phone to Linux desktop (KDE Neon) the files
become corrupt.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-06 Thread Yuriy Vidineev
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #21 from Yuriy Vidineev  ---
I still has the same issue with 1.12.93 (Android 9, Samsung Galaxy Note 8) and
kdeconnect 1.3.5-0xneon+18.04+bionic+build21 (latest KDE Neon). MD5 sums are
different, there are errors when opening JPEG files


Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-06 Thread Alexander Kernozhitsky
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #20 from Alexander Kernozhitsky  ---
Just tested it now, I am unable to reproduce this issue also on 1.12.93. I also
had errors like "Unable to transfer file", but they don't appear now. Seems
that it's fixed.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-08-06 Thread Florian Achleitner
https://bugs.kde.org/show_bug.cgi?id=405847

--- Comment #19 from Florian Achleitner  ---
Hi, just wanted to add, that I can no longer reproduce this issue.
Android app version is 1.12.93.
Several tries showed identical file hashes.
Was it fixed?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-06-16 Thread Alexander Kernozhitsky
https://bugs.kde.org/show_bug.cgi?id=405847

Alexander Kernozhitsky  changed:

   What|Removed |Added

 CC||sh200...@mail.ru

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 405847] SFTP transfer corrupts all files

2019-06-16 Thread Florian Achleitner
https://bugs.kde.org/show_bug.cgi?id=405847

Florian Achleitner  changed:

   What|Removed |Added

Summary|SFTP corrupts DNG files |SFTP transfer corrupts all
   ||files

-- 
You are receiving this mail because:
You are watching all bug changes.