Bug 407711 - Password dialog canceling opens new dialog
Summary: Password dialog canceling opens new dialog
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: 19.04.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 06:20 UTC by Markus Knetschke
Modified: 2025-03-20 03:47 UTC (History)
2 users (show)

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


Attachments
Weird dialog with Retry and empty buttons (11.90 KB, image/png)
2025-02-17 20:49 UTC, Grósz Dániel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Knetschke 2019-05-19 06:20:01 UTC
SUMMARY
kiod opens a new password dialog for a sftp connection even if the user clicked cancel.

STEPS TO REPRODUCE
1. open a sftp url in dolphin (maybe trough session restore)
2. click cancel in the password popup

OBSERVED RESULT
a new password dialog pops up. Even after closing the dolphin window.

EXPECTED RESULT
kiod stops asking me for a password. Sends the sftp client a "connection failed" message or stops asking completely if there is no client

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 19.04.01
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Pressing the cancel button writes the following log entries:
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: dialog result= 0 , bypassCacheAndKWallet? false
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" window-id= 0 username= "" realm= "" seqNr= 28 keepPassword? true canceled? true
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" expire= 2 window-id= 0 keep= false
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1"
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" , user= "" seqNr: request= 27 , result= 28
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: auto retry!
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1"
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" , user= "" seqNr: request= 27 , result= 28
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: auto retry!
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1"
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" , user= "" seqNr: request= 27 , result= 28
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: auto retry!
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1"
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" , user= "" seqNr: request= 27 , result= 28
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: auto retry!
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1"
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0
Mai 19 08:17:54 Ragnarok-Think kwin_x11[612]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 57679, resource id: 69206331, major code: 15 (QueryTree), minor code: 0
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0 seqNr = 28 , errorMsg = ""
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0 seqNr = 28 , errorMsg = ""
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: key= "sftp-192.168.1.5:-1" , user= "" seqNr: request= 28 , result= 28
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: Widget for 0 QWidget(0x0)
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: Showing password dialog KPasswordDialog(0x55baea1fb360, name="KPasswordDialog") , window-id= 0
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0 seqNr = 28 , errorMsg = ""
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0 seqNr = 28 , errorMsg = ""
Mai 19 08:17:54 Ragnarok-Think kiod5[26506]: org.kde.kio.kpasswdserver: User = "" , WindowId = 0 seqNr = 28 , errorMsg =
Comment 1 Harald Sitter 2020-03-04 17:00:16 UTC
Can you still reproduce this?
It seems to work for me on the 19.12 release.
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!
Comment 4 Grósz Dániel 2025-02-17 20:48:22 UTC
Still happens with kio-extras 24.12.2, Frameworks 6.10.0, Plasma 6.3.0, Dolphin 24.12.2.

Also, the second dialog allows editing the user name even if it's already specified in the sftp URL before a @, but if you change the user name, it doesn't work even if you enter the correct password. And if I cancel it, it shows a weird dialog with a Retry button and a button with no text. And if I click that empty button, it then pops up the username/password dialog again, and then again several times if I click Cancel (no more weird Retry/nothing dialog there).
Comment 5 Grósz Dániel 2025-02-17 20:49:02 UTC
Created attachment 178498 [details]
Weird dialog with Retry and empty buttons
Comment 6 Harald Sitter 2025-02-18 16:02:10 UTC
 Please run in a terminal 

QT_LOGGING_RULES="kf.kio.*=true" /usr/lib/libexec/kf6/kiod6 --replace

and reproduce the error. Then paste the here. Mind that the libexec path may be different on your distribution you'll need to search for it using the package manager.
Comment 7 Bug Janitor Service 2025-03-05 03:47:06 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2025-03-20 03:47:06 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.