Clone
 

marek šiller <marek.siller@jbasilisk.eu> in Drools

Bugfix for DROOLS-354 and DROOLS-540 on Windows

Backport of the bugfix from master branch to Drools 6.1.x branch

Bugfix for DROOLS-354 and DROOLS-540 on Windows

Backport of the bugfix from master branch to Drools 6.1.x branch

Bugfix for DROOLS-354 and DROOLS-540 on Windows

Bugfix for DROOLS-354 and DROOLS-540 on Windows

Using WildyFly VFS, the urlPath parameter of the function is the real path to the file with no leading "/" (see method ClasspathKieProject#getPathForVFS(URL), statement String path = f.getPath();).

Without the bugfix, the drive letter is stripped from the path creating a drive-relative path. If the rule archive is on another drive than the WildFly working directory, this leads to a NullPointerException in the method ClasspathKieProject#getPomPropertiesFromZipFile(String) (in the finally block, zipFile.close()).