Skip to content

Android scoped permission is messed up by decodeURIComponent #990

@yuzjia-work

Description

@yuzjia-work

temporary permission for the files that user choose breaks because decodeURIComponent

The temporary permission is indexed by Uri, process id and user id and this is where system breaks.

The user selected file has an encoded uri for example,

content://com.android.providers.downloads.documents/document/msf%3A6179

In the pdf preview library, the uri is decoded into

"content://com.android.providers.downloads.documents/document/msf:6179"

This coding break the entire scoped permission system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions