Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10645

When a content creation+edition failed using CreateContent helper, the quietly deletion failed too

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.11, 4.4.0
    • None
    • None
    • None
    • 4.4 RC1

      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 

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: