Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-759

WebDAV providers should loaded only when commons-vfs2-jackrabbit* jars are available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.9.0
    • None

    Description

      In corner cases, VFS loading may fail totally due to webdav provider loading issues.

      One corner case reported by Xeno Amess [1]:

      • The (a) webdav4(s) file system providers requires (b) jackrabbit-webdav jar, which requires (c) httpclient4 library.
      • The standard providers.xml checks classes from (b) and (c) only, so if (a) doesn't exist in the system, the VFS core library fails to load itself.
        For example, the reporter found out that versions-maven-plugin pulls in (b) and (c).
        So, when the VFS core is only used in their system, it just fails because it does not have (a).
      • A workaround is to just install commons-vfs2-jackrabbit* jar as well in the system.

      It would be cleaner if the standard providers.xml checked a class in (a) as well, to avoid this kind of problems.

      [1] https://lists.apache.org/thread.html/rbe64575979ef5f6a677e301d109dbea81c81ba82db556128fe917986%40%3Cdev.commons.apache.org%3E

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              woonsan Woonsan Ko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m