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

DriveLikeExporterPlugin should replace forbidden character from title

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 8.10-HF38
    • Fix Version/s: 8.10-HF39
    • Component/s: Core IO

      Description

      When a folderish document contains characters like / then the plugin fails:

      Caused by: java.io.FileNotFoundException: /export/XXXXX_1/01 Intranet/08 XXXX/P&L/B.U. ITF/2017 - 12/Encours au 31/12/2017/02 - XXXX/XXX_20170327_CCAP.pdf (No such file or directory)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(FileOutputStream.java:270)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
      	at org.nuxeo.ecm.core.api.impl.blob.AbstractBlob.transferTo(AbstractBlob.java:166)
      	at org.nuxeo.io.fsexporter.DriveLikeExporterPlugin.serialize(DriveLikeExporterPlugin.java:67)
      	at org.nuxeo.io.fsexporter.FSExporter.serializeStructure(FSExporter.java:60)
      	at org.nuxeo.io.fsexporter.FSExporter.serializeStructure(FSExporter.java:65)
      	at org.nuxeo.io.fsexporter.FSExporter.serializeStructure(FSExporter.java:65)
      	at org.nuxeo.io.fsexporter.FSExporter.serializeStructure(FSExporter.java:65)
      

      Forbidden chars should be encoded like in drive:

      https://github.com/nuxeo/nuxeo-drive/blob/4f4c347f33f93e60c39dabda004957c05d2864e5/nxdrive/utils.py#L398

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.