Bug 486714

Summary: KNetAttach crashes when trying to connect via SSH when IP is not in known_hosts.
Product: [Applications] knetattach Reporter: Lukas Ruzicka <lruzicka>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version: 6.0.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The screencast showing the situation.

Description Lukas Ruzicka 2024-05-07 09:48:20 UTC
Created attachment 169264 [details]
The screencast showing the situation.

SUMMARY

I am trying to make a connection from Dolphin to an SSH server (SFTP). While trying to do so, KNetAttach becomes unresponsive in the moment it needs to approve the authenticity of the server (as the IP is not in the `known-hosts` file) showing a notification at the same time about **Examining the connection.** 

The dialogue can be finished in three ways:
* Hitting the X closing icon -> the action is interrupted and the connection is not created.
* Clicking on the V symbol to dismiss the notification -> KNetAttach crashes and the crash is caught by Abrt. See https://bugzilla.redhat.com/show_bug.cgi?id=2279506 for more information.
* Clicking on the "Stop" button at the notification window -> The action stops but KNetAttach asks for the password.
* Clicking on the "Pause" button at the notification window ->The action is paused and KNetAttach asks for the password and creates the connection anyway.

Any consecutive attempt to create the connection is successful when the IP address already is in the known_hosts.

STEPS TO REPRODUCE
See the screencast.

OBSERVED RESULT
KNetAttach is unresponsive and possibly crashes.

EXPECTED RESULT
KNetAttach creates the connection without any issues.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux KDE (Rawhide)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0