Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15851

Wildfly Weld UrlScanner does not open correct VirtualFile

XMLWordPrintable

      When examining bean archives, UrlScanner uses a handle of parent directory instead of .class file in method handleDirectory. I believe that instead of

      handleFile(newPath, () -> file.toURL().openStream());            

      there should be

      handleFile(newPath, () -> child.toURL().openStream());  

      as the file above refers to the parent directory, causing subsequent IOException during attempt to read the actual class file contents.

              manovotn Matěj Novotný
              bol_bobcik Boleslav Bobcik (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: