-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
My model is Code String; Sous-code String multiple
I want to import 1 content with a triple value in sous-code including an empty value
If I import this
Code;Sous-code AWS-ABS; AWS-ABS;CSS AWS-ABS;CHO
I have no error but the multiple value is "CSS,CHO". I lost my empty string
If I import
Code;Sous-code AWS-ABS;CSS AWS-ABS; AWS-ABS;CHO
I have a NPE on the second line
java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:221) at java.base/java.util.ImmutableCollections$List12.<init>(ImmutableCollections.java:371) at java.base/java.util.List.of(List.java:807) at org.ametys.plugins.contentio.csv.CSVImporter._getAttributeDefinitionValues(CSVImporter.java:411)
If I add a ;
Code;Sous-code AWS-ABS;CSS AWS-ABS;; AWS-ABS;CHO
I have an error
Message: Import from CSV file: content skipped because of invalid row: [AWS-ABS, null, null] Location: org.ametys.plugins.contentio.csv.CSVImporter.importContentsFromCSV(CSVImporter.java:129)
An if I invert columns
Sous-code;Code ;AWS-ABS CSS;AWS-ABS CHO;AWS-ABS
I also have the NPE above