+[PHAsset fetchAssetsWithMediaType:options:] return duplicated assets
| Originator: | gwendal.roue | ||
| Number: | rdar://18633075 | Date Originated: | 2014/10/13 |
| Status: | Open | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary: +[PHAsset fetchAssetsWithMediaType:options:] return duplicate assets that the developer has no way to de-duplicate, because those duplicated assets don't have the same localIdentifier. Still, their images are identical. Steps to Reproduce: Have iCloud sync your photo roll. Take photos. Invoke +[PHAsset fetchAssetsWithMediaType:options:]. Expected Results: The result contains unique assets. Actual Results: The result contains duplicated assets. Version: Version 6.0.1 (6A317), iOS 8.0.2 (12A405). Notes: It looks like iterating moments and assets in moments does not give any duplicate. But of course, since the +[PHAsset fetchAssetsInAssetCollection:options:] is called several times, one per moment, one must now sort "by hand" all those assets. If only +[PHAsset fetchAssetsWithMediaType:options:] had not returned any duplicate, one could have simply used the sortDescriptor of the fetchOptions. Please fix +[PHAsset fetchAssetsWithMediaType:options:], so that it does not return duplicate, or provide another option that filters out those duplicate assets. Configuration: The issue has happened on an iPhone 6+.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!