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

CombinedVFSCache permanent root canonical url result in context not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.3.GA
    • 2.1.2.GA
    • None
    • None
    • Workaround Exists

      org.jboss.virtual.plugins.cache.CombinedVFSCache init in conf/bootstrap/vfs.xml, permantent root key values are converted to URL via org.jboss.util.propertyeditor.URLEditor, which in turn uses org.jboss.util.Strings.toURL(String, String) to create a canonical version.

      so
      <key>file:/opt/jboss/home/../deploy</key>
      becomes:
      /opt/jboss/deploy

      but org.jboss.virtual.plugins.cache.CombinedVFSCache.findContext(URL) will not create a canonical url, so lookup with
      file:/opt/jboss/home/../deploy fails to match key /opt/jboss/deploy

      findContext should apply same String-to-URL conversion to guarantee match

            ajustin@redhat.com Ales Justin
            work_registries John Doe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: