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

Drive error when uploading zip file to server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2
    • Fix Version/s: 10.3
    • Component/s: Nuxeo Drive
    • Tags:
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Added to FileManager:

      DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite, String fullName, boolean noMimeTypeCheck, boolean excludeOneToMany) throws IOException;
      

      to allow excluding "one-to-many" importers (ie. the ones creating more than one document for the given blob, typically CSVZipImporter or ExportedZipImporter) when selecting the importer. This is used by Drive to not try to explode a CSV import ZIP for instance.

      Added to FileImporter:

      boolean isOneToMany();
      

      to flag an importer as "one-to-many", ie. it creates more than one document for the given blob, typically CSVZipImporter or ExportedZipImporter.

      Show
      Added to FileManager : DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite, String fullName, boolean noMimeTypeCheck, boolean excludeOneToMany) throws IOException; to allow excluding "one-to-many" importers (ie. the ones creating more than one document for the given blob, typically CSVZipImporter or ExportedZipImporter ) when selecting the importer. This is used by Drive to not try to explode a CSV import ZIP for instance. Added to FileImporter : boolean isOneToMany(); to flag an importer as "one-to-many", ie. it creates more than one document for the given blob, typically CSVZipImporter or ExportedZipImporter .
    • Sprint:
      nxfit 10.3.5
    • Story Points:
      3

      Description

      On the Drive client side we see org.nuxeo.ecm.automation.OperationException: Failed to invoke operation NuxeoDrive.CreateFile

      on the server the error is:

      Caused by: java.lang.ClassCastException: org.nuxeo.drive.adapter.impl.DocumentBackedFolderItem cannot be cast to org.nuxeo.drive.adapter.FileItem
          at org.nuxeo.drive.adapter.impl.DocumentBackedFolderItem.createFile(DocumentBackedFolderItem.java:504)
          at org.nuxeo.drive.service.impl.FileSystemItemManagerImpl.createFile(FileSystemItemManagerImpl.java:241)
          at org.nuxeo.drive.operations.NuxeoDriveCreateFile.run(NuxeoDriveCreateFile.java:80)
          at sun.reflect.GeneratedMethodAccessor1249.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:170)
          at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:175)
          ... 144 more
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h