Skip to content

Fix access to content: URLs with transient read/write permissions

Volker Krause requested to merge (removed):work/ec497d5e-backport into kde/5.15

The current code assumed that the lack of persistent permissions means we cannot access the file at all. That however isn't the case for content: URLs we get e.g. via Intents, those are accessible perfectly fine via QFile, we just don't have (and can't obtain) persistent permissions for them.

This is done by continuing in the case of not having persistent permissions and checking for SecurityExceptions that are thrown when accessing content: URLs we really have no permission for.

Pick-to: 6.2 5.15 Change-Id: I39115a7730d717eb9517e4f1c1a57e40988001a5 Reviewed-by: Assam Boudjelthia assam.boudjelthia@qt.io (cherry picked from commit ec497d5e)

Merge request reports