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

Unable to delete a repeater entry contaning an empty multivaluable metadata of type content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 3.9
    • 3.9
    • Inline Editor
    • None

      Create a repeater entry that contains a mutlivaluable metadata of type content.
      Leave the corresponding field empty and save.
      Reopen the content in edition, delete the repeater entry and save. The edition process will fail server side during the removal of the repeater entry.

      Caused by: org.ametys.plugins.repository.AmetysRepositoryException: Cannot get a String from an empty array
      	at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata._getString(JCRCompositeMetadata.java:362)
      	at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata.getString(JCRCompositeMetadata.java:343)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadataRemoval(EditContentFunction.java:2076)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeRepeaterInReplaceMode(EditContentFunction.java:1962)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeRepeater(EditContentFunction.java:1806)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeCompositeMetadata(EditContentFunction.java:1767)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadata(EditContentFunction.java:1693)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadataSetElement(EditContentFunction.java:588)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeCompositeMetadata(EditContentFunction.java:1776)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadata(EditContentFunction.java:1693)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadataSetElement(EditContentFunction.java:588)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeRepeaterInReplaceMode(EditContentFunction.java:2020)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeRepeater(EditContentFunction.java:1806)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeCompositeMetadata(EditContentFunction.java:1767)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadata(EditContentFunction.java:1693)
      	at org.ametys.cms.workflow.EditContentFunction._synchronizeMetadataSetElement(EditContentFunction.java:588)
      	at org.ametys.cms.workflow.EditContentFunction._bindAndValidateContent(EditContentFunction.java:488)
      	at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:258)
      	... 98 more
      

            trizzi Thibaut Rizzi (Inactive)
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: