Unable to Save CKAssets to Public Database using CloudKit APIs

Originator:jake
Number:rdar://17212110 Date Originated:06/06/2014
Status:Closed Resolved:
Product:iOS SDK Product Version:iOS 8 Beta 1
Classification: Reproducible:Always
 
Summary:
When trying to save a record with an asset attribute (with a key of 'photo') to the public database of my container, I receive an error response saying "Internal Error" (1/1003); "Saving asset failed ". Saving to the private container does not generate this error, and saves successfully.

Steps to Reproduce:
1. Create a CKRecord
2. Create a CKAsset pointing to an image file on disk
3. Set the 'photo' attribute of your CKRecord instance to your CKAsset instance
4. Use *either* the CKModifyRecordsOperation-style or saveRecord-style method to save your CKRecord instance.

Expected Results:
The CKAsset would get uploaded and the CKRecord would be saved properly.

Actual Results:
An error is returned stating simply "Internal Error" (1/1003); "Saving asset failed."

Version:
iOS 8 Beta 1

Notes:
For what it's worth, I am able to create records in the public database in the iCloud Dashboard, and upload assets manually there in the browser. *However*, when I use a CKQuery to retrieve records created in this fashion, the CKAssets are not properly populated and do not have a valid fileURL property (fileURL is nil).

Comments

Seems fixed (aka. works for me now). Didn't work for me earlier this week.


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!