How to reproduce
I tried to created and edit a new user content without sufficient rights.
The content was created but the edition failed because of insufficient rights.
So the created content should be automatically deleted.
But I can see in logs that this deletion was failed
Caused by: java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.lang.String (java.util.ArrayList and java.lang.String are in module java.base of loader 'bootstrap') at org.ametys.cms.repository.ContentDAO.deleteContents(ContentDAO.java:356) at org.ametys.cms.repository.ContentDAO.deleteContents(ContentDAO.java:343) at org.ametys.cms.repository.ContentDAO.deleteContents(ContentDAO.java:332) ... 104 more