Bug 388090 - Wrong file handle from flatpak file dialog
Summary: Wrong file handle from flatpak file dialog
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-20 19:29 UTC by Marco Bubke
Modified: 2021-06-22 19:21 UTC (History)
1 user (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 Marco Bubke 2017-12-20 19:29:48 UTC
As you allow the sand box to access the host file system and access the file over
the file dialog you get a very different path than the expected.

actual:
Access file /home/username/testproject/testproject.pro
=> /run/user/1001/doc/3b985a78/testproject.pro

expected:
Access file /home/username/testproject/testproject.pro
=> /home/username/testproject/testproject.pro

I think it is because the file dialog portal is not testing if the file access is 
permitted and sends always an opaque file handle.
Comment 1 Jan Grulich 2017-12-21 10:38:10 UTC
I discussed this with Flatpak developers and opened a bug here: https://github.com/flatpak/xdg-desktop-portal/issues/141
Comment 2 Marco Bubke 2017-12-21 12:17:27 UTC
Good, I was not sure it belonged to kde or flatpak in general. Thank you.
Comment 3 Jan Grulich 2021-06-22 19:21:51 UTC
I believe this is no longer a problem.