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

Cannot change folder sync configuration of a site because there is a folder with a invalid character

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Desktop-3.4.1 GA2
    • Fix Version/s: Desktop-3.4.2 GA3
    • Component/s: UI
    • Labels:
      None
    • Fix Priority:
      3
    • Affects Portal Version/s:
      6.2.10 EE GA1

      Description

      Steps to reproduce

      1. In Liferay Portal: Create a site and add some folders and files
      2. Install Liferay Sync in Windows PC
      3. Configure Liferay Sync to synchronize created site
      4. In Liferay Portal: Add a folder with a invalid character, for example a <tab> character
      5. In Liferay Sync: Open preferences => click manage site => select site => click in "select folder" button (cogwheel icon)
        • Expected behavior: Select folder window is displayed
        • Wrong behavior: "URL is not valid" error is displayed and following exception is thrown at sync log:
          19:42:56.817 TRACE [pool-11-thread-5] [GetSyncDLObjectUpdateEvent:52] Processing event GetSyncDLObjectUpdateEvent
          19:42:56.901 TRACE [pool-11-thread-5] [BaseJSONHandler:362] Handling response GetSyncDLObjectUpdateHandler 
          19:42:57.412 TRACE [Thread-26] [BaseJSONService:132] Illegal char <	> at index 113: D:\Documents\LiferaySync\in.liferay.com\Global Services\Tech Talks\2011\Mar 10 - Overriding Struts in Plugins by 	Mika Koivisto
          java.nio.file.InvalidPathException: Illegal char <	> at index 113: D:\Documents\LiferaySync\in.liferay.com\Global Services\Tech Talks\2011\Mar 10 - Overriding Struts in Plugins by 	Mika Koivisto
          	at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
          	at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
          	at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
          	at sun.nio.fs.WindowsPath.parse(Unknown Source)
          	at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
          	at com.liferay.sync.engine.util.FileUtil.getFilePath(FileUtil.java:269)
          	at com.liferay.sync.engine.util.FileUtil.getFilePathName(FileUtil.java:273)
          	at com.liferay.sync.ui.window.service.GetFoldersService._buildFilePathName(GetFoldersService.java:115)
          	at com.liferay.sync.ui.window.service.GetFoldersService.access$500(GetFoldersService.java:56)
          	at com.liferay.sync.ui.window.service.GetFoldersService$GetLocalFoldersTask.doCall(GetFoldersService.java:242)
          	at com.liferay.sync.ui.window.service.GetFoldersService$GetLocalFoldersTask.call(GetFoldersService.java:136)
          	at com.liferay.sync.ui.window.service.GetFoldersService$GetLocalFoldersTask.call(GetFoldersService.java:131)
          	at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
          	at java.util.concurrent.FutureTask.run(Unknown Source)
          	at javafx.concurrent.Service.lambda$null$492(Service.java:725)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          	at java.lang.Thread.run(Unknown Source)
          

      I have reproduced this issue with "Global Services" site of liferay intranet, so you can also reproduce it synchronizing that site.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 17 weeks, 1 day ago