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

binaryMetadataSyncListener + command line don't work when file name contains some characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2, 7.3-SNAPSHOT
    • Fix Version/s: 7.4
    • Component/s: File Upload

      Description

      For example, it does not work with parenthesis and commas. Dropping these files...

      • Agence France Presse (AFP) - Case Study.pdf
      • Jeppesen, a Boeing Company - Case Study.pdf
        ... generates:
        2015-06-05 14:33:34,226 ERROR [http-bio-0.0.0.0-8080-exec-30] [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Exception during binaryMetadataSyncListener sync listener execution, continuing to run other listeners
        java.lang.IllegalArgumentException: '/Applications/nuxeo-cap-7.3-SNAPSHOT-06-05-DAM-AWS/tmp/batch-1433529214206-348/Jeppesen, a Boeing Company - Case Study.pdf' contains illegal characters. It should match: [\p{L}_0-9-.%:=/\\ ]+
        
        

      The files are imported/full text extracted/etc., no problems, it is the binaryMetadata extraction that fails because of the restriction applied to the command line (here, exiftool, but the problem has nothing to do with the command line, the failure occurs before the command line is called).

      Having ( or ) or , in a file path should not be problem.
      Or even & ("Nuxeo & Java.pdf"), or ° ("nuxeo, as hot as 154°.pdf"), or...

      Set to "Major" because "as a nuxeo developer I want to be able to get the metadata without asking users to change the name of their files"

      Tested only in 7.3 SNAPSHOT of the day (2015-06-05)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: