Uploaded image for project: 'WebTop'
  1. WebTop
  2. WT-919

Folder or file with character "%" it breaks connection to any type of cloud resource

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Done
    • Cloud
    • None
    • 5.3.1
    • release
    • 5.4.1
    • wt-5.11.3
    • 0411

    Description

      If on the external Nextcloud resource there is a folder with the character "%" in the name, the link fails.

      Steps to reproduce

      • on nextcloud and create a folder with this name "Folder%"
      • on webtop create link to nextcloud
      • click on the link to access the folders

      Expected behaviour

      • folders and files on nextcloud are shown

      Actual behaviour

      • a generic error is shown on the interface and nextcloud files and folders are not shown

      In the log reports these reports:

      2021-02-12 12:19:25 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree org.apache.commons.vfs2.FileSystemException: Could not find files in "webdavs://lucag:***@localhost/nextcloud/remote.php/webdav". at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:946) at org.apache.commons.vfs2.provider.AbstractFileObject.listFiles(AbstractFileObject.java:1560) at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:921) at com.sonicle.webtop.vfs.VfsManager.listStoreFiles(VfsManager.java:641) at com.sonicle.webtop.vfs.Service.processManageStoresTree(Service.java:435) at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
      .......
      Caused by: org.apache.commons.vfs2.FileSystemException: Unknown message with code "Invalid URI escape sequence "%".". at com.sonicle.vfs2.provider.webdav.WebdavFileObject.doListChildrenResolved(WebdavFileObject.java:466) at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1008) at org.apache.commons.vfs2.provider.AbstractFileObject.traverse(AbstractFileObject.java:121) at org.apache.commons.vfs2.provider.AbstractFileObject.findFiles(AbstractFileObject.java:943) ... 61 common frames omitted
      
      Caused by: org.apache.commons.vfs2.FileSystemException: Invalid URI escape sequence "%". at org.apache.commons.vfs2.provider.UriParser.canonicalizePath(UriParser.java:413) at org.apache.commons.vfs2.provider.URLFileNameParser.parseUri(URLFileNameParser.java:51) at org.apache.commons.vfs2.provider.AbstractFileProvider.parseUri(AbstractFileProvider.java:179) at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveName(DefaultFileSystemManager.java:814) at com.sonicle.vfs2.provider.webdav.WebdavFileObject.doListChildrenResolved(WebdavFileObject.java:452) ... 64 common frames omitted
      

       

      Thanks to Paolo Falchi (Ref: #127755)

      Attachments

        Issue Links

          Activity

            People

              federico.ballarini Federico Ballarini
              luca.gasparini Luca Gasparini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package