Bug 477568 - Knetattach "remembers" wrong credentials
Summary: Knetattach "remembers" wrong credentials
Status: CONFIRMED
Alias: None
Product: knetattach
Classification: Applications
Component: general (show other bugs)
Version: 6.0.3
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-26 15:35 UTC by Gabriel
Modified: 2024-06-22 00:34 UTC (History)
2 users (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 Gabriel 2023-11-26 15:35:09 UTC
SUMMARY

STEPS TO REPRODUCE
1. Go Dolphin > Network > Add network folder
2. Choose WebFolder (webdav) 
3. Fill the details (can use https://www.dlp-test.com/webdav_pub/ for test)
4. Save & Connect
5. Set WRONG user/password. Accept. Connection will fail.
6. Try again

OBSERVED RESULT

Knetattach "remembers" the wrong credentials used when re-trying to add this folder. No matter what you try*, it will NEVER ask again for user/password failing automatically everytime. Wrong credentials are not stored in the KDE Wallet neither, then that's not the issue.

Only way to make knetattach "forget" the wrong credentials used was reboot.

EXPECTED RESULT

It ask for the credentials again, if incorrect.

SOFTWARE/OS VERSIONS
KDE Neon: 6.2.0-37-generic 
KDE Plasma Version: 5.27.9
KDE Frameworks Version:  5.111.0
Qt Version: 5.15.11
Comment 1 Dm 2024-04-15 10:03:21 UTC
KDE 6.0.3, having the same problem

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-27-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15.3 ГиБ of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 9570
Comment 2 Dm 2024-04-18 09:55:28 UTC
KF 6.1, the problem is still here

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-27-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15.3 ГиБ of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 9570
Comment 3 pandora 2024-04-23 23:39:40 UTC
I'm unsure if I'm in the right place and I have no idea how things work around here exactly, but I wanted to share some observation I made in this matter and thought this should be a good place for it. Please tell if I should put this somewhere else.

Rebooting didn't work for me, so I had to poke around a little more. Following are the steps that worked for me:
- renamed .local to .local.backup
- closed dolphin and opened it again
- a new .local-folder got added
- added the WebFolder anew and got asked for the credentials again
- connection successful
- reviewed the content of new .local
  - folders: baloo, dolphin, kate, kwalletd, remoteview, Trash
  - files: krunnerstaterc, recently-used.xbel, user-places.xbel, user-places.xbel.bak, user-places.xbel.tbcache
- figured folders kwalletd and remoteview might be relevant
- in .local.backup: renamed kwalletd and remoteview to kwalletd.backup and remoteview.backup
- renamed .local to .l and .local.backup to .local again
- closed dolphin and opened it again
- added the WebFolder anew
- didn't got asked for credentials again
- connection successful
- in .local: a new remoteview-folder got created but no new kwalletd

I don't really know what's going on. First I thought the credentials were in .local somewhere, as I was asked to enter them again after renaming it. After reverting the name, I didn't have to give the credentials again, but the connection worked anyway. So the credentials could not have been in .local, otherwise it would have taken the wrong old ones right? I think the credentials might be saved somewhere else and .local only "knows" where. So new .local didn't know the place and asked for credentials, but then saved them in the same place = overwriting the old credentials. So old .local looked where it "thought" to have stored the old credentials and found the new ones. Does this make any sense?


Operating System: EndeavourOS 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 4 Dm 2024-06-22 00:34:23 UTC
KF 6.3, QT 6.7.0, bug is still here

Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-41-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15.3 ГиБ of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 9570