Bug 403813 - Copying and renaming via sftp:// fails
Summary: Copying and renaming via sftp:// fails
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: 18.12.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-31 20:08 UTC by Thomas Mitterfellner
Modified: 2020-04-03 04:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Mitterfellner 2019-01-31 20:08:55 UTC
I connect to my server via sftp://, e.g. from krusader. When I copy a file, transferring the file works, but automatic renaming of the file on the server from file.ext.part to file.ext fails with this error message:

"Could not rename partial file sftp://myuser@my.server/path/file.ext. Please check permissions"

When I manually try to rename it, I get:

"Access denied to sftp://myuser@my.server/path/file.ext."

The permissions are perfectly fine, which I see when I ssh to the server:

-rw-r--r-- 1 myuser myuser 115124 Jan 31 19:42 file.ext.part

I also cannot create or edit text files on the fly over sftp (was always working).

Note that everything works as expected when I use fish:// from krusader, e.g. to copy fish://myuser@my.server/path/file.ext. Strangely enough, this has been working for YEARS without any problem with sftp:// after it had failed using fish://; now it's the other way round.

STEPS TO REPRODUCE
1. connect via sftp:// from krusader
2. copy a file
3. 

OBSERVED RESULT
Error message and copied file with extension .part

EXPECTED RESULT
Copied file with original extension

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2020-03-04 14:58:38 UTC
Is this still a problem with the 19.12 release?
If so please post the permissions of the .part file, the target file, and the directory they are in. Also, what libssh version is this with? Can you rename the file when you use the sftp CLI?
Comment 2 Bug Janitor Service 2020-03-19 04:33:17 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2020-04-03 04:33:16 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!