CKRecord.creatorUserRecordID returning defaultOwner instead of actual owner
Originator: | mltapdancer01 | ||
Number: | rdar://46980932 | Date Originated: | 12/30/2018 |
Status: | Open | Resolved: | |
Product: | CloudKit | Product Version: | iOS 12.1.1 |
Classification: | Other Bug | Reproducible: | Yes |
Area: CloudKit Summary: `CKRecord.creatorUserRecordID` is supposed to return the creator of the record. Instead, it returns `defaultOwner`. It seems that this property does not behave as expected from the documentation. Note that queries with predicates like `NSPredicate(format: "creatorUserRecordID = %@", userRecordID!)` work fine. On StackOverflow, it seems that this issue was previously fixed in iOS 9 Beta 2, but I believe it's resurfaced again. (https://stackoverflow.com/questions/29597755/cloudkit-creatoruserrecordid-of-ckrecord-issue-or-bug) Steps to Reproduce: Make a CKRecord. Then ask it for its `creatorUserRecordID`. Expected Results: Your User record ID. Actual Results: ```(lldb) po post.creatorUserRecordID Optional<CKRecordID> - some : <CKRecordID: 0x28318f520; recordName=__defaultOwner__, zoneID=_defaultZone:__defaultOwner__>``` Version/Build: iOS 12.1.1
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!