Bug 487926 - VLC fails to open video in smb folder if password is saved in KWallet
Summary: VLC fails to open video in smb folder if password is saved in KWallet
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-02 14:51 UTC by Iyán M. V.
Modified: 2024-07-07 21:46 UTC (History)
4 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 Iyán M. V. 2024-06-02 14:51:02 UTC
SUMMARY

Not sure if this is the right place to report this bug. Please, feel free to move it to the right category.

I recently noticed that when trying to open videos from a smb shared folder, VLC will fail saying that "Your input can't be opened: VLC is unable to open the MRL 'smb:/..." if the smb user and password are saved in KWallet. I can only reproduce this issue on a laptop connected over WiFi. In a PC connected over ethernet (and with a fixed IP) it always works. Not sure if it's relevant, but just in case someone tries to reproduce the issue.

Also, this is not a regression, it also happens with Plasma 6.0.5, not just in Plasma 6.1 Beta.

STEPS TO REPRODUCE
1. Open a shared folder with Dolphin writing smb://<IP>/<Folder>
2. Type user and password when asked and click on "Remember password"
3. Try to open video from shared folder with VLC (it works)
4. Reboot computer (or exit session and login back)
5. Open same folder with Dolphin (no user or password is asked as expected)
6. Try to open the same video with VLC (now it fails)
7. Open KWalletManager, search "smb" and delete the entry with the user and password for that shared folder
8. Repeat the steps above, and now it works again
9. If in step 2, password is not saved, and user and password are manually introduced every time, VLC always work

OBSERVED RESULT
VLC can't open videos if user and password are saved in KWallet. Other video players always work (e.g. Dragon Player or mpv).

EXPECTED RESULT
VLC should also work all the times.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 21 × Intel® Core™ Ultra 7 155H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Arc
Manufacturer: LENOVO
Product Name: 21KDS00600
System Version: ThinkPad X1 Carbon Gen 12

ADDITIONAL INFORMATION
The shared folder is created with a Synology NAS.
Comment 1 Harald Sitter 2024-06-03 08:26:11 UTC
kio-smb is not involved when VLC says "MRL 'smb:/..." that's purely VLC's own smb implementation. Moving to kwallet as the defect is probably either there or VLC.
Comment 2 kskot 2024-06-25 18:15:45 UTC
This bug looks similar to this one: https://bugs.kde.org/show_bug.cgi?id=488737
In your system logs do you also see "kwallet keystore error: kwallet_read_password_list : Wrong reply type" ?
Comment 3 Iyán M. V. 2024-07-07 21:46:51 UTC
I can't replicate this issue anymore after updating to Plasma 6.1.2 and Gear to 24.05.2. I'm not aware of changing anything on my system so I guess it was fixed by some of the later changes.