NSURLSession ignores the configuration parameter
| Originator: | pierluigi.cifani | ||
| Number: | rdar://22305621 | Date Originated: | 17 Ago 2015 |
| Status: | Open | Resolved: | - |
| Product: | iOS SDK | Product Version: | 9.0 Beta 5 |
| Classification: | Serious | Reproducible: | Always |
Summary: NSURLSession seems to ignore the configuration parameter that you pass in the initializer, and what's worse: it looks like it returns a different configuration every time you query that property, making using NSURLSessionConfiguration impossible. You can find attached a playground showing what's happening. Open it with Xcode 6 and with Xcode 7 to see the difference Steps to Reproduce: 1.- Store in a property NSURLSessionConfiguration.defaultSessionConfiguration() 2.- Pass that into the initializer of NSURLSession 3.- Query the property 'configuration' of the created NSURLSession 4.- Query it again, and again... Notice that it always changes Expected Results: The returned NSURLSessionConfiguration is consistent with what was passed in the initalizer Actual Results: The returned NSURLSessionConfiguration is changing every time the property is queried. Version: iOS 9 beta 5 (build 13A4325c) Notes: This is of vital importance to fix, since the use of NSURLSessionConfiguration is key to a lot of our core technologies. Configuration: iPhone Simulator and iPod Touch
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!