BlueHuskyStudios / BlueHuskyStudios/DeadassSimpleMediaPlayer

`accessSecurityScopedResource`'s `onFailure` conflates "denied" with "didn't need a scope"

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Automatically found bug
Dominant language
Swift
Stars
0
Forks
3
Avg merge
2d 22h
Merged PRs (30d)
9

Description

`startAccessingSecurityScopedResource()` returns `false` both when access is denied *and* when the URL doesn't require a scope (app-container files, children enumerated under an active parent scope). The wrapper routes both to `onFailure`, documented as "Called if the request to access the resource at this URL failed."

`MediaItem` learned this the hard way and now treats the boolean as ownership rather than success. This helper still encodes the older assumption, and every future caller inherits it.

Contributor guide

Open the contributing guide

Research direction

Locate the accessSecurityScopedResource helper and inspect how its onFailure callback is documented and invoked. Read the MediaItem handling mentioned in the issue for comparison. Done means the helper no longer makes callers treat a false return as unambiguously denied, with its behavior and callback semantics made consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.