Create Library Playlist request should be made idempotent

Originator:darren.mo
Number:rdar://FB13471322 Date Originated:2023-12-15
Status:Open Resolved:
Product:MusicKit Product Version:Web
Classification:Suggestion Reproducible:
 
The Create Library Playlist request is currently not idempotent. If the request is retried, there may be duplicate playlists. Ideally, the request could be made idempotent.

A common way to make a creation request idempotent is add a unique identifier to the request. The client would generate the identifier and make sure to send the same identifier for all retries of a given request. Then, the server would do the following set of operations in an atomic fashion:
1. Check if an item with the client’s unique identifier already exists. If so, return it.
2. Else, create the item and store the client’s unique identifier along with it.

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!