CONNECTION_SessionTask doesn't implement all public API nor is KVO compliant

Originator:warorface
Number:rdar://18727673 Date Originated:21-Oct-2014 06:49 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Although CONNECTION_SessionTask is a private class, instances of this class are passed in to NSURLProtocol’s classed method “canInitWithTask:”

This may lead to crashes if the protocol then tries to use methods not implemented in this private class or observe any property.

Steps to Reproduce:
- Run attached project in iOS simulator

Expected Results:
- Not to crash

Actual Results:
- See it crash!

Regression:
NO, this is new to iOS 8.

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!