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

Error downloading files from sites with spaces in name

    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

      11:35:43,990 DEBUG [GetFileContentEvent:88] URL for file content /api/secure/webdav/some site/document_library//oh%20%20no.txt
      11:35:43,990 ERROR [BaseEvent:141] Server is offline
      11:35:43,992 ERROR [BaseEvent:143]
      java.lang.IllegalArgumentException
      at java.net.URI.create(Unknown Source)
      at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69)
      at com.liferay.sync.modules.documentlibrary.server.event.GetFileContentEvent.buildHttpRequest(GetFileContentEvent.java:90)
      at com.liferay.sync.modules.documentlibrary.server.event.BaseEvent.run(BaseEvent.java:78)
      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)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 23: /api/secure/webdav/some site/document_library//oh%20%20no.txt
      at java.net.URI$Parser.fail(Unknown Source)
      at java.net.URI$Parser.checkChars(Unknown Source)
      at java.net.URI$Parser.parseHierarchical(Unknown Source)
      at java.net.URI$Parser.parse(Unknown Source)
      at java.net.URI.<init>(Unknown Source)
      ... 12 more

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 9 weeks ago

                  Packages

                  Version Package
                  1.0.3 RC4