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

Drive crashes when updating a Picture

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1
    • Fix Version/s: 7.2
    • Component/s: Nuxeo Drive
    • Upgrade notes:
      Hide

      Deprecated:

      • FileSystemItemManager#getSession(String repositoryName, Principal principal)
      • FileSystemItemFactory#getDocumentByFileSystemId(String id, Principal principal)
      Show
      Deprecated: FileSystemItemManager#getSession(String repositoryName, Principal principal) FileSystemItemFactory#getDocumentByFileSystemId(String id, Principal principal)

      Description

      For example when renaming a JPG file client-side, we get:

      ****** chain ******
      Name: NuxeoDrive.Rename
      Exception: OperationException
      Caught error: Failed to invoke operation NuxeoDrive.Rename
      Caused by: java.lang.NullPointerException
      ****** Hierarchy calls ******
      	org.nuxeo.drive.operations.NuxeoDriveRename
      
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:229)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:113)
      	at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:51)
      	at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:61)
      	... 90 more
      Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation NuxeoDrive.Rename
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:157)
      	at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:128)
      	at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:114)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:205)
      	... 93 more
      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.callPictureConversionChain(ImagingComponent.java:475)
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.computeView(ImagingComponent.java:443)
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.computeView(ImagingComponent.java:315)
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.computeViewsFor(ImagingComponent.java:510)
      	at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.addViews(AbstractPictureAdapter.java:310)
      	at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.fillPictureViews(DefaultPictureAdapter.java:119)
      	at org.nuxeo.ecm.platform.picture.api.adapters.PictureBlobHolder.setBlob(PictureBlobHolder.java:74)
      	at org.nuxeo.drive.adapter.impl.DocumentBackedFileItem.rename(DocumentBackedFileItem.java:88)
      	at org.nuxeo.drive.service.impl.FileSystemItemManagerImpl.rename(FileSystemItemManagerImpl.java:255)
      	at org.nuxeo.drive.operations.NuxeoDriveRename.run(NuxeoDriveRename.java:59)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:132)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:145)
      	... 96 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: