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

Liferay Sync client fails to download certain files when server sends "Accept-Ranges" header

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Desktop-3.4.8 GA9
    • Fix Version/s: Desktop-3.4.9 GA10
    • Component/s: General
    • Labels:
      None

      Description

      Exception like the following will appear in the log:

      17:07:16.304 TRACE [pool-17-thread-1] [BaseHandler:184] Handling response DownloadFileHandler file path /Users/dennisju/Documents/sync.liferay.com/dennis.ju/documents/x-pack.rst
      17:09:58.151 ERROR [pool-17-thread-1] [DownloadFileHandler:298] /Users/dennisju/Documents/sync.liferay.com/.data/597
      java.nio.file.NoSuchFileException: /Users/dennisju/Documents/sync.liferay.com/.data/597
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
      	at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
      	at java.nio.file.Files.newOutputStream(Files.java:216)
      	at com.liferay.sync.engine.document.library.handler.DownloadFileHandler.copyFile(DownloadFileHandler.java:202)
      	at com.liferay.sync.engine.document.library.handler.DownloadFileHandler.doHandleResponse(DownloadFileHandler.java:364)
      	at com.liferay.sync.engine.document.library.handler.BaseHandler.handleResponse(BaseHandler.java:194)
      	at com.liferay.sync.engine.document.library.handler.BaseHandler.handleResponse(BaseHandler.java:60)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
      	at com.liferay.sync.engine.session.Session.execute(Session.java:364)
      	at com.liferay.sync.engine.session.Session.execute(Session.java:354)
      	at com.liferay.sync.engine.session.Session$1.run(Session.java:289)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            dennis.ju Dennis Ju (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 9 weeks, 2 days ago

                Packages

                Version Package
                Desktop-3.4.9 GA10