Bug 497049

Summary: GPodder Nextcloud sync fails likely due to snap package confinement
Product: [Applications] kasts Reporter: Ian Nicholson <ian>
Component: generalAssignee: bart
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: relevant apparmor logs from syslog

Description Ian Nicholson 2024-12-04 19:14:33 UTC
Created attachment 176355 [details]
relevant apparmor logs from syslog

SUMMARY
Unable to sync with gpodder nextcloud with snap package

STEPS TO REPRODUCE
1. snap install kasts
2. Log in to gpodder nextcloud 

OBSERVED RESULT
The "Manually Sync" button is greyed out and the sync status under the "Account" header reads "Syncing disabled".  Syncing does not occur

EXPECTED RESULT
Kasts syncs with nextcloud gpodder api server

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Celeron® N4000 CPU @ 1.10GHz
Memory: 3.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 600
Manufacturer: Dell Inc.
Product Name: Wyse 5470
Name   Version  Publisher  Notes  Summary
kasts  24.08.3  kde✓       -      Podcast application


ADDITIONAL INFORMATION
I've attached all the apparmor logs from syslog when I ran kasts, you'll see the third from last line has a deny trying to open dbus to talk to kwallet
Comment 1 Ian Nicholson 2024-12-06 19:07:12 UTC
Comment on attachment 176355 [details]
relevant apparmor logs from syslog

I suspect that this line: 
2024-12-04T09:07:21.421488-06:00 HOSTNAME dbus-daemon[2135]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/modules/kwalletd6" interface="org.kde.KWallet" member="networkWallet" mask="send" 
indicates that the snap needs the password-manager-service plug added in order to save the nextcloud password
Comment 2 Ian Nicholson 2024-12-06 22:42:30 UTC
I've confirmed that adding the password-manager-service directive as a plug is sufficient to allow kasts to save the password
Comment 3 bart 2024-12-07 08:13:10 UTC
Git commit 6a765c90005701729b13c4f04d8ee661ded8d1cf by Bart De Vries, on behalf of Ian Nicholson.
Committed on 07/12/2024 at 08:12.
Pushed by bdevries into branch 'release/24.12'.

[snap] Add password-manager-service plug

This allows saving nextcloud gpodder password.

M  +1    -0    snapcraft.yaml

https://invent.kde.org/multimedia/kasts/-/commit/6a765c90005701729b13c4f04d8ee661ded8d1cf
Comment 4 bart 2024-12-07 08:14:46 UTC
Thanks for the MR.

I still need to look into how to generate a new snap version for the snap store.  Since 24.12 will be released in a few days, I hope it will show up automatically, otherwise I'll try to find out how to get this done.