Free book sample deleted if full book purchase is cancelled

Originator:nicolas.alvarez
Number:rdar://21954861 Date Originated:22-Jul-2015 11:55 PM
Status:Open Resolved:
Product:iBooks Product Version:3.2
Classification: Reproducible:
 
Summary:
If I have a free book sample, and I tap to buy the full book, but then cancel, the free sample is deleted, and I have to hunt the store again for the book.

I have seen three scenarios where this can happen: tapping Cancel on the iTunes Store password prompt, network going down after tapping Buy, or not accepting a change in the terms and conditions of the store service (this last case is how I discovered the bug). It might also happen if the iTunes account doesn't have a valid payment method, but I have not tested this scenario.

Steps to Reproduce:
Cancelling password prompt:
1. Open iBooks and go to the book store.
2. Select any book.
3. Tap "Sample" to download the book sample.
4. Return to the library.
5. Open the book sample.
6. Tap to buy the full book. The book is automatically closed and the screen goes back to the library. The book sample is grayed out and a progress bar appears on it. The "Sign In to iTunes Store" prompt appears.
7a. Tap Cancel on the password prompt. In some cases I have seen the password prompt appear again up to three times (separate bug?); in that case keep tapping Cancel until it goes away.
8a. The book sample disappears from the library.

Network failure:
1-6. Same steps as above.
7b. After the "Sign in to iTunes Store" prompt appears, make the network go down. Control Center is not accessible while the password prompt is visible, but it's still possible to enter airplane mode via Siri. Or you can just unplug your Wi-Fi router.
8b. Enter your iTunes password and tap OK.
9b. An alert appears saying there was an error connecting to the iTunes store. Dismiss it.
10b. The book sample disappears from the library.

T&C changes:
This case needs an iTunes account that hasn't been used for purchases since June 30, 2015, so it's harder to test:
1-6. Same steps as above.
7c. On the iTunes Store password prompt, enter the password as normal and tap OK.
8c. A new prompt appears saying "iTunes Terms & Conditions have changed". Tap Cancel.
9c. The book sample disappears from the library.

A fourth scenario where this might happen is if the account doesn't have a valid payment method, but I have not tested this, so it's speculation.

Expected Results:
I expect the purchase to be cancelled, but the free book sample should remain in my library.

Actual Results:
The book sample is deleted from the library. I have to search for the book in the store again.

Version:
iBooks 3.2 (2083) on iOS 7.1.2 (11D257)

Notes:
I could also reproduce the "cancel password prompt" scenario on an iPhone 5s with iOS 8.4 (built-in iBooks). I didn't test the other cases, but I suspect they'd be reproducible as well.

I think Apple should fix both the App Store version of iBooks for iOS 7 and the built-in version for iOS 8.

Configuration:
iPod touch 5th generation, 32GB, A1421, MD720E/A

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!