Bug 498843

Summary: Account info portal response not recognized by ASHPD when the user has no profile picture
Product: [Plasma] xdg-desktop-portal-kde Reporter: Ilya Bizyaev <bizyaev>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ilya Bizyaev 2025-01-18 12:52:38 UTC
SUMMARY
From https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.impl.portal.Account.html, I get an impression that the response should contain an "image" field regardless.

STEPS TO REPRODUCE
1. Install and launch https://flathub.org/apps/com.belmoussaoui.ashpd.demo
2. On the "Account" page, enter a reason and click Request
3. Accept the portal dialog

OBSERVED RESULT
"Request to fetch user information failed". From the demo's logs:
"ERROR ashpd_demo::portals::desktop::account: Failed to retrieve user information: ZBus Error: missing field `image`"

EXPECTED RESULT
Account information is fetched successfully

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250116
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Ilya Bizyaev 2025-01-18 14:45:29 UTC
Tested with GNOME 47, works there
Comment 2 Ilya Bizyaev 2025-01-22 21:31:00 UTC
From portal logs:

Failed to register file:///home/user/.face: Failed to open file:///home/user/.face