Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-379

Adding files quickly causes missing parent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.2 RC3
    • Fix Version/s: 1.0.3 RC4
    • Component/s: General
    • Labels:
      None
    • Environment:
      All

      Description

      Parent and children added at the same time, first child fails.
      -1: E:/liferay-sync/liferay-sync-test-site/Test Data/Test Folder 5/File 0.txt, (desc), False (dir), 0 (last), 35 (modelId), -1 (parentId), -1 (parentMId),0 (remoteSize), -1 (repoId), UPLOADING (state), File 0.txt (title), (uuid), 0 (version), 0 (error)

      14:05:16,940 ERROR [BaseEvent:129] Server is offline
      14:05:16,941 ERROR [BaseEvent:131]
      java.lang.NullPointerException
      at com.liferay.sync.modules.documentlibrary.server.FileModelManager.refreshParentId(FileModelManager.java:426)
      at com.liferay.sync.modules.documentlibrary.server.event.FileModelEvent.refreshFileModel(FileModelEvent.java:56)
      at com.liferay.sync.modules.documentlibrary.server.event.FileModelEvent.getParentFolderId(FileModelEvent.java:92)
      at com.liferay.sync.modules.documentlibrary.server.event.UploadFileEvent.isReady(UploadFileEvent.java:56)
      at com.liferay.sync.modules.documentlibrary.server.event.BaseEvent.run(BaseEvent.java:64)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 48 weeks, 4 days ago

                Packages

                Version Package
                1.0.3 RC4