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

[SolR Search Tool] Unable to save modifications on a repeater with content data in a nested repeater

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.0
    • None
    • None
    • None
    • 4.4 M2

      How to reproduce:

      1. Create an exhaustive content
      2. Add an entry in the repeaterThreeLevels
        1. In this entry, fill the content data belongs to
        2. Add an entry in the repeater 2
          1. In this entry, add an entry in the repeater3
            1. In this entry, fill the content data belongs to
      3. Save the content.
      4. Open the SolrSearchTool, search for your new content and put the repeaterThreeLevels in the columns
      5. Click in the cell to edit the repeater
      6. The dialog box is opened => OK
      7. Modify the strig data of the first level repeater entry
      8. Click on the OK button, the cell is dirty => OK
      9. Click on the save button in the yellow ribbon => KO
      Category: org.ametys.cms.workflow.EditContentFunction
      Message: Content reference invalid at path 'repeaterThreeLevels/1/repeater2/1/repeater3/1/rep3-owns', value '{"isSimple":false,"id":"defaultWebContent://983e0187-146c-41fc-9d04-026945bfe481","title":"Contenu exhaustive"}'
      Location: org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Thrown:org.ametys.plugins.repository.UnknownAmetysObjectException: There's no object for id {"isSimple":false,"id":"defaultWebContent://983e0187-146c-41fc-9d04-026945bfe481","title":"Contenu exhaustive"}
      at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:307)
      at org.ametys.cms.workflow.EditContentFunction._bindContentField(EditContentFunction.java:2350)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateContentReferenceMetadata(EditContentFunction.java:2289)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:875)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:647)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateRepeater(EditContentFunction.java:1100)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateCompositeMetadata(EditContentFunction.java:1010)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:869)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:647)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateRepeater(EditContentFunction.java:1100)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateCompositeMetadata(EditContentFunction.java:1010)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:869)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:647)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateRepeater(EditContentFunction.java:1100)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateCompositeMetadata(EditContentFunction.java:1010)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:869)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:647)
      at org.ametys.cms.workflow.EditContentFunction._bindAndValidateContent(EditContentFunction.java:597)
      at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:330)

            raphael Raphaël Franchet
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: