Uploaded image for project: 'Content IO'
  1. Content IO
  2. CONTENTIO-298

CSV import fail if we try to replace repeater entry with long as identifier

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.14.0
    • 3.14.0
    • None
    • 4.8.0 RC1
    • Oui

        [CONTENTIO-298] CSV import fail if we try to replace repeater entry with long as identifier

        Kepa Bourgoin made changes -
        Status Original: Resolved [ 5 ] New: Closed [ 6 ]
        Bérénice Maurel made changes -
        Resolution New: Fixed [ 1 ]
        Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
        Bérénice Maurel made changes -
        Comment [ I'm trying to import thesaurus like this (code is an additional data to terms of thesaurus):
        {code}code*;title;specificTerms.code*;specificTerms.title;specificTerms.specificTerms.code;specificTerms.specificTerms.title
        "A";"Title A";"A1";"Title A1";"A1a";"Title A1a"
        "A";"Title A";"A1";"Title A1";"A1b";"Title A1b"
        "A";"Title A";"A2";"Title A2";"A2a";"Title A2a"
        "B";"Title B";"B1";"Title B1";"B1a";"Title B1a"{code}

        But I'm getting the following error:
        {code}java.lang.ClassCastException: class org.ametys.runtime.model.View cannot be cast to class org.ametys.runtime.model.ModelViewItemGroup (org.ametys.runtime.model.View and org.ametys.runtime.model.ModelViewItemGroup are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @1ef3efa8)
            at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._getRepeaterParent(ImportCSVFileHelper.java:470)
            at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._haveRepeaterParent(ImportCSVFileHelper.java:460)
            at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._checkViewItemContentContainer(ImportCSVFileHelper.java:442)
            at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._checkViewItemContainer(ImportCSVFileHelper.java:401)
            at org.ametys.plugins.contentio.csv.ImportCSVFileHelper.validateConfiguration(ImportCSVFileHelper.java:230)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [...]{code} ]
        Bérénice Maurel made changes -
        Resolution Original: Fixed [ 1 ]
        Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
        Kepa Bourgoin made changes -
        Resolution New: Fixed [ 1 ]
        Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
        Bérénice Maurel made changes -
        Assignee Original: Bérénice Maurel [ bmaurel ] New: Kepa Bourgoin [ kbourgoin ]
        Bérénice Maurel made changes -
        Status Original: Functional review OK [ 10207 ] New: Ready to merge [ 10208 ]
        Bérénice Maurel made changes -
        Assignee New: Bérénice Maurel [ bmaurel ]
        Kepa Bourgoin made changes -
        Assignee Original: Kepa Bourgoin [ kbourgoin ]
        Kepa Bourgoin made changes -
        Status Original: Available for review [ 10005 ] New: Functional review OK [ 10207 ]

          kbourgoin Kepa Bourgoin
          kbourgoin Kepa Bourgoin
          Kepa Bourgoin Kepa Bourgoin
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: