Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-137

When symbolic links are used for server configuration directories, the vfs cached deployments are not found within the CombinedVFSCache permanent roots

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.2.0.GA
    • 2.1.3.SP1
    • None
    • None
    • Hide

      The problem can be avoided either by not using symbolic links or by setting the jboss.server.home.dir and jboss.server.home.url properties to the resolved path so all paths compared become the resolved paths.

      Show
      The problem can be avoided either by not using symbolic links or by setting the jboss.server.home.dir and jboss.server.home.url properties to the resolved path so all paths compared become the resolved paths.

    Description

      When a symbolic link (symlink) is used for a server configuration directory (for example, <jboss-home>/server/elsewhere -> /somewhere/default) there is a mismatch between paths used for the CombinedVFSCache's permanentroots and those used to find items in the cache.

      "CombinedVFSCache" which is configured in <jboss-home>/server/<server-dir>/conf/bootstrap/vfs.xml. In this configuration, several "permanentroots" are configured based on properties. While the properites themselves utilize a path with the symlink, the URLEditor that converts the string to a URL will convert the path, resolving the symlink. (This is because the URLEditor utilzes the org.jboss.util.Strings class which makes a call to java.io.File#getCanonicalFile())

      However, lookups make into the cache will utilize a non-resolved path and thus do not match the permanent roots. Due to another bug, JBVFS-134, this bug can lead to duplicate entries in the <jboss-home>/server/<server-dir>/tmp/vfs-nested.tmp directory and, ultimately, to disk full errors.

      Attachments

        Issue Links

          Activity

            People

              ajustin@redhat.com Ales Justin
              rhn-support-miclark Mike Clark
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: