Bug 413878 - Open second file via sftp triggers msg "The file or folder sftp://... does not exist."
Summary: Open second file via sftp triggers msg "The file or folder sftp://... does no...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.08.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-06 14:55 UTC by Thomas Fischer
Modified: 2020-11-03 07:30 UTC (History)
1 user (show)

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


Attachments
Screenshot showing the error message. Sensitive/private parts have been marked black. (12.75 KB, image/webp)
2019-11-06 14:55 UTC, Thomas Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fischer 2019-11-06 14:55:15 UTC
Created attachment 123752 [details]
Screenshot showing the error message. Sensitive/private parts have been marked black.

SUMMARY
When trying to open a second file via the File Open dialog after already having a file opened via the sftp protocol, Kate shows the error message "The file or folder sftp://FULLFILNAMEOFOPENFILE does not exist."
My interpretation is that Kate tries to tell the File Open dialog to switch to the same folder where the currently open file came from, but instead of passing along the just path without the filename, the file open dialog receives the path plus filename. The dialog then tries to 'cd' into this 'folder' which does not work as it is a plain file on a remote SFTP share.

The problem does not exist for local files. I have not tested it with other remote protocols like webdavs.
I cannot reproduce the problem with Okteta, here does the file open dialog start in the right folder on the sftp share; thus I believe it is a Kate-specific bug.

STEPS TO REPRODUCE
1. Open a first file via the sftp protocol.
2. File -> Open to get a File Open dialog
3. Error message with the filename of the first file opened in step 1 appears.

OBSERVED RESULT
Error message box appears as described.

EXPECTED RESULT
No error message. File open dialog shows directory on sftp share where previously opened file resides.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: current Arch Linux
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.2
Comment 1 Justin Zobel 2020-10-30 02:56:36 UTC
I've just tested on kate from git master and I cannot reproduce this issue.

Thomas can you please re-test and confirm if this issue still occurs for you.
Comment 2 Thomas Fischer 2020-11-03 07:25:03 UTC
(In reply to Justin Zobel from comment #1)
> I've just tested on kate from git master and I cannot reproduce this issue.
> 
> Thomas can you please re-test and confirm if this issue still occurs for you.

I had not tested this issue for a time, but I did so right now using Kate 20.08.2 from ArchLinux. I can confirm that the issue is no longer reproducible.
You may close it if you like.
Comment 3 Justin Zobel 2020-11-03 07:30:23 UTC
Thanks for testing and the feedback Thomas!