-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Addons
-
Tags:
In the following documents, sample XML files for use with the scan document importer make use of two different date formats, causing server errors:
Server errors:
2019-01-17T12:09:30,007 ERROR [Nuxeo-Importer-1] [org.nuxeo.ecm.platform.scanimporter.processor.ScanedFileSourceNode] Error during properties parsing java.io.IOException: java.text.ParseException: Unparseable date: 2005-03-17 at org.nuxeo.ecm.platform.scanimporter.service.ScannedFileMapperComponent.parseMetaData(ScannedFileMapperComponent.java:127) ~[nuxeo-importer-scan-10.10-I20190115_2305.jar:?] at org.nuxeo.ecm.platform.scanimporter.processor.ScanedFileSourceNode.getChildren(ScanedFileSourceNode.java:91) ~[nuxeo-importer-scan-10.10-I20190115_2305.jar:?] at org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.recursiveCreateDocumentFromNode(GenericThreadedImportTask.java:328) ~[nuxeo-importer-core-10.10-I20190115_2305.jar:?] at org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.lambda$run$0(GenericThreadedImportTask.java:380) ~[nuxeo-importer-core-10.10-I20190115_2305.jar:?] at org.nuxeo.runtime.api.Framework.doPrivileged(Framework.java:271) [nuxeo-runtime-10.10-I20190115_2305.jar:?] at org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask.run(GenericThreadedImportTask.java:374) [nuxeo-importer-core-10.10-I20190115_2305.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_73] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_73] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_73] Caused by: java.text.ParseException: Unparseable date: 2005-03-17 at org.apache.commons.lang3.time.FastDateParser.parse(FastDateParser.java:367) ~[commons-lang3-3.8.jar:3.8] at org.apache.commons.lang3.time.FastDateFormat.parse(FastDateFormat.java:550) ~[commons-lang3-3.8.jar:3.8] at org.nuxeo.ecm.platform.scanimporter.service.ScannedFileMapperComponent.parseMetaData(ScannedFileMapperComponent.java:125) ~[nuxeo-importer-scan-10.10-I20190115_2305.jar:?] ... 8 more