PHAssetChangeRequest.deleteAssets doesn't work on burst assets

Originator:duc
Number:rdar://18470284 Date Originated:14-Feb-2015
Status:Open Resolved:
Product:iOS Product Version:8.1.3
Classification: Reproducible:
 
Summary:
There are 2 scenarios (in all cases canPerformEditOperation(.Delete) indicates the asset[s] ARE deletable):
1.) Perform deleteAssets change request on asset that is NOT the representative photo from a burst sequence -> nothing is deleted
2.) Perform deleteAssets change request on asset that is the representative photo from a burst sequence -> entire burst is deleted

Steps to Reproduce:
1.) Call PHAssets.fetchAssetsWithOptions with includeAllBurstAssets enabled
2.) Call PHPhotoLibrary.sharedPhotoLibrary().performChanges({PHAssetChangeRequest.deleteAssets(...) ... on asset(s) in a burst such that none of the assets are the representative photo.
3.) Call PHPhotoLibrary.sharedPhotoLibrary().performChanges({PHAssetChangeRequest.deleteAssets(...) ... on the representative photo (representsBurst == true) of a burst. 

Expected Results:
When non-representative photo is deleted, it should be removed from the burst.
When representative photo is deleted, it and it alone should be removed from the burst. 

Actual Results:
When non-representative photo is deleted, no photos are removed from the burst.
When representative photo is deleted, the entire burst is deleted. 

Version:
iOS 8.1.3 (12B466)

Notes:
Things get more complicated when you use the "Select..." feature in Photos.app on a burst sequence so that they show up as individual photos in Photos.app. Then you CAN delete them from the photo grid but they are still not removed from the burst.

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!