Bug 443759

Summary: File dialog hangs in Kate when the current working folder is on the network (sftp) and unreachable
Product: [Frameworks and Libraries] frameworks-kio Reporter: Raphaël Jakse <raphael.kde>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.86.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Raphaël Jakse 2021-10-15 05:35:25 UTC
SUMMARY

When editing remote files in Kate, if the remote host is unavailable, the open/save file dialog hangs when trying to save a file or open a new file, rendering Kate unusable for a while. The file dialog finally appears after a timeout.

If the remote host becomes unreachable while navigating in the file dialog, it hangs too. 

This may affect other apps too. I hesitated to file this bug under the frameworks-kio product.

STEPS TO REPRODUCE

1. In Kate, open a file sitting on remote computer via SFTP
2. Suspend the remote computer
3. File > Open or File > Save As

OBSERVED RESULT

Kate hangs for a while.

EXPECTED RESULT

Kate should not hang, the file dialog should be shown right away, with a loading view, as it is the case when the remote computer becomes unreachable while navigating in its folders with the file dialog.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86
Qt Version: 5.15.2

ADDITIONAL INFORMATION

None
Comment 1 Raphaël Jakse 2021-10-15 05:36:50 UTC
> If the remote host becomes unreachable while navigating in the file dialog, it hangs too.

Sorry, I forgot to remove this line, this is incorrect, this actually does what is expected and shows a loading view. Sorry for the mistake.