When a resource is deleted in the site but still used in LTI, everytime this resource is access in LTI marsha generates an error 500 because it tries to create a resource in the database the the resource with this id exists and is soft deleted.
Expected behavior/code
The already existing id error should be catch and a response should be return informing that the resource is deleted.
Steps to Reproduce
Create a resource in LTI
Claim the playlist to be allowed to manage it on the site
Bug Report
Problematic Behavior
When a resource is deleted in the site but still used in LTI, everytime this resource is access in LTI marsha generates an error 500 because it tries to create a resource in the database the the resource with this id exists and is soft deleted.
Expected behavior/code
The already existing id error should be catch and a response should be return informing that the resource is deleted.
Steps to Reproduce