Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31664

ExifToolProcessor fails on parsing empty dates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2021.x, 2023.x
    • Component/s: Binary Metadata

      Description

      When parsing an EXIF date, if the date is an empty string, the parsing fails and the document is not created.

      Stacktrace:

      2023-02-09T09:48:19,513 ERROR [http-nio-0.0.0.0-8080-exec-16] [org.nuxeo.binary.metadata.internals.ExifToolProcessor] Could not parse property: EXIF:DateTimeOriginal
      java.text.ParseException: Unparseable date: ""
      	at java.text.DateFormat.parse(DateFormat.java:395) ~[?:?]
      	at org.nuxeo.binary.metadata.internals.ExifToolProcessor.parseDates(ExifToolProcessor.java:208) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.ExifToolProcessor.returnResultMap(ExifToolProcessor.java:193) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.ExifToolProcessor.readMetadata(ExifToolProcessor.java:152) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.ExifToolProcessor.readMetadata(ExifToolProcessor.java:164) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.BinaryMetadataServiceImpl.readMetadata(BinaryMetadataServiceImpl.java:73) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.BinaryMetadataServiceImpl.writeMetadata(BinaryMetadataServiceImpl.java:200) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.BinaryMetadataServiceImpl.applyUpdates(BinaryMetadataServiceImpl.java:291) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.binary.metadata.internals.listeners.BinaryMetadataSyncListener.handleEvent(BinaryMetadataSyncListener.java:109) ~[nuxeo-binary-metadata-2021.32.8.jar:?]
      	at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:280) ~[nuxeo-core-event-2021.32.8.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:289) ~[nuxeo-core-2021.32.8.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:753) ~[nuxeo-core-2021.32.8.jar:?]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: