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

Fix NPE when uploading a folder

    XMLWordPrintable

    Details

      Description

      When uploading a folder, the following NPE can occur:

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.core.api.AbstractSession.isAdministrator(AbstractSession.java:2505) ~[nuxeo-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.checkPermission(AbstractSession.java:235) ~[nuxeo-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1000) ~[nuxeo-core-2021.36.9.jar:?]
      	at com.nuxeo.aspera.connector.helpers.FolderUploadHelper.getFilesData(FolderUploadHelper.java:109) ~[nuxeo-aspera-core-2021.3.10.jar:?]
      	at com.nuxeo.aspera.connector.adapter.Transfer.getFileInfoListForFolder(Transfer.java:635) ~[nuxeo-aspera-core-2021.3.10.jar:?]
      	at com.nuxeo.aspera.connector.service.AsperaServiceImpl.getFileInfoList(AsperaServiceImpl.java:310) ~[nuxeo-aspera-core-2021.3.10.jar:?]
      	at com.nuxeo.aspera.connector.service.AsperaServiceImpl.completeTransfer(AsperaServiceImpl.java:197) ~[nuxeo-aspera-core-2021.3.10.jar:?]
      	at com.nuxeo.aspera.connector.service.AsperaServiceImpl.completeTransfer(AsperaServiceImpl.java:129) ~[nuxeo-aspera-core-2021.3.10.jar:?]
      	at com.nuxeo.aspera.connector.service.AsperaNodeServiceImpl.syncTransfer(AsperaNodeServiceImpl.java:201) ~[nuxeo-aspera-core-2021.3.10.jar:?]
      	... 21 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 - 20 minutes
                20m