Server does not validate catalog IDs in Add To Library request

Originator:darren.mo
Number:rdar://FB13471305 Date Originated:2023-12-15
Status:Open Resolved:
Product:MusicKit Product Version:Web
Classification:Incorrect/Unexpected Behavior Reproducible:Always
 
The attached sample project sends an Add To Library request with an invalid catalog ID:
```
https://api.music.apple.com/v1/me/library?ids[songs]=fake-catalog-id
```

Unexpectedly, the request is successful.

I assume the server is processing the request in a fire-and-forget manner. However, this approach makes it inconvenient for developers. Depending on the use case, the app would have to look up the catalog ID to make sure it is valid before adding it to the library. Instead, it would be great if the server could validate the catalog IDs synchronously, even if the actual mutation of the library is fire-and-forget.

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!