Skip to content

[iOS/macOS] Files outside the sandbox, picked by pickFile(), can't be accessed by other library methods #28

Open

Description

@birdofpreyru

More precisely, in case of macOS this is true for files outside the app sandbox, for iOS it applies for files from iCloud. The problem is that current conversion of security-scoped URLs into string URLs returned by pickFile() looses the security-scope permissions.

Activity

  1. added a commit that references this issue on Jan 29, 2024
  2. birdofpreyru commented on Jan 29, 2024

    @birdofpreyru
    OwnerAuthor

    As of v2.23.0 the issue is fixed for pickFile(), copyFile(), and exists(). Other functions, most probably, require additional fixes to correctly handle the special «Bookmark URLs» returned now by pickFile() on iOS & macOS (in the absence of these fixes other methods are not expected to crash in any dramatic way, most probably they'll just consider such URLs point to non-existing files).

  3. birdofpreyru commented on Jun 15, 2024

    @birdofpreyru
    OwnerAuthor

    Since v2.27.1 «Bookmark URLs» are, presumably, supported by readDir() and readdir() methods (implemented, pending to be tested).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    On HoldBlocked for some reason.P1High priority issue.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions