Bug 421784 - Error message when copying file to sftp location, even though the transfer worked
Summary: Error message when copying file to sftp location, even though the transfer wo...
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (other bugs)
Version First Reported In: 20.04
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-19 16:02 UTC by Alexander Ewering
Modified: 2020-05-25 18:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Debug output from Dolphin (11.86 KB, text/plain)
2020-05-20 16:36 UTC, Alexander Ewering
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ewering 2020-05-19 16:02:32 UTC
STEPS TO REPRODUCE

1) In Dolphin, create an sftp connection (Set "/" as folder)
2) Drag and Drop (copy) a local file to a sub-folder on that connection

OBSERVED RESULT

1) Error "Could not write to file sftp://user@server:port/folder/filename.ext
2) When "Retry" is clicked, warning "This action will overwrite the destination." appears, hinting at the fact that the file HAS actually been successfully transferred.
3) When "Overwrite" is clicked, the loop repeats at 1).

Note that the file never gets listed by Dolphin, but SSHing to the machine and doing ls actually reveals that the file has been transferred.

Another relevant piece of information may be that the first folder level is a symlink.

So, the FTP connection starts in the user's home directory (~), then there's a symlink "public_html" that points to a different directory outside the user's home directory, and in that directory there's another sub-directory where the file is to be copied to.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.18
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Alexander Ewering 2020-05-19 16:07:12 UTC
Additional info:

- When hitting "Cancel" instead of "Retry", the copied file actually appears in Dolphin's directory listing.

- The "Mark partially uploaded files" setting in System Settings makes no difference.

- This smells suspiciously like a side-effect of the recent fix to my previously reported bug about a very similar problem.
Comment 3 Alexander Ewering 2020-05-20 16:36:52 UTC
Created attachment 128643 [details]
Debug output from Dolphin

I've marked the points in time when I hit "Retry", "Overwrite" and "Cancel".
Comment 4 Alexander Ewering 2020-05-20 16:37:48 UTC
The server is the same as in my last report (ProFTPd) and the error seems again related to zero byte writes.
Comment 5 Harald Sitter 2020-05-25 14:58:26 UTC
And that's with kio-extras 20.04.1?
Comment 6 Alexander Ewering 2020-05-25 17:25:56 UTC
(In reply to Harald Sitter from comment #5)
> And that's with kio-extras 20.04.1?

Hi, sorry, was still on 20.04. Just updated to 20.04.1 and problem is fixed! Thanks!