{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/20662","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/20662/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/20662/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/20662/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/20662","id":377009012,"node_id":"MDU6SXNzdWUzNzcwMDkwMTI=","number":20662,"title":"45777886: PHImageManager requestImageDataForAsset returns that videos are in iCloud even when iCloud photo library is disabled","user":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/378","html_url":"https://github.com/lionheart/openradar-mirror/milestone/378","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/378/labels","id":2165669,"node_id":"MDk6TWlsZXN0b25lMjE2NTY2OQ==","number":378,"title":"iOS + SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":905,"closed_issues":60,"state":"open","created_at":"2016-11-30T08:08:41Z","updated_at":"2018-11-03T01:02:14Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-11-03T01:02:14Z","updated_at":"2018-11-03T01:02:14Z","closed_at":null,"author_association":"COLLABORATOR","body":"#### Description\n\nSummary:\r\nWe have functionality that does not attempt to request data for a given asset unless the device is on wifi if that data needs to be fetched from iCloud. We've noticed through user report and internal reproduction that even if that video is not stored in iCloud Photo Library that videos can return `YES` from the info dictionary's `PHImageResultIsInCloudKey` even if the user does not have iCloud photo library enabled. In iOS 11 and below, we have not seen this behavior.\r\n\r\nSteps to Reproduce:\r\n1. Using iOS 12, take video while signed in to iCloud (or not at all) with iCloud photo library.\n2. Call `[PHImageManager defaultManager] requestImageDataForAsset:asset options:options resultHandler:resultHandler]`\n3. Inspect the resultHandler's input parameter dictionary passed by the Photos framework\n\r\n\r\nExpected Results:\r\n4. `[info[PHImageResultIsInCloudKey] boolValue]` should be `NO`\r\n\r\nActual Results:\r\n4. `[info[PHImageResultIsInCloudKey] boolValue]` is always `YES` even we don’t have iCloud turned on\r\n\r\nVersion:\r\n12.0.x\r\n\r\nNotes:\r\n```\n    BOOL isCancelled = [info[PHImageCancelledKey] boolValue];\n    BOOL isDegraded = [info[PHImageResultIsDegradedKey] boolValue];\n    BOOL isInCloud = [info[PHImageResultIsInCloudKey] boolValue];\n```\n\nCode associated with screenshot\n\n-\nProduct Version: 12.0.x\nCreated: 2018-11-03T00:11:11.722997\nOriginated: 2018-11-02T17:11:00\nOpen Radar Link: http://www.openradar.me/45777886"}}
{"actor":{"display_login":"openradar-mirror"}}