-
Bug
-
Resolution: Done
-
Major
-
2.1.3.SP1
-
None
-
None
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.