Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for DROOLS-354 and DROOLS-540 #379

Merged
merged 2 commits into from Sep 23, 2014
Merged

Bugfix for DROOLS-354 and DROOLS-540 #379

merged 2 commits into from Sep 23, 2014

Conversation

chearius
Copy link

This pull request includes a bugfix for Drools issues DROOLS-354 and DROOLS-540 on Windows using WildFly application server.

Essentially, the problem is, that the path obtained via WildFly VFS is a path (so there is no leading "/"), but the code in IoUtils checks for the leading "/", otherwise the drive letter gets stripped creating a drive-relative path. This works well when WildFly's working directory and the VFS target file is on the same drive, but fails if two different drives are involved.

Marek Šiller added 2 commits September 10, 2014 15:43
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()).
mariofusco added a commit that referenced this pull request Sep 23, 2014
Bugfix for DROOLS-354 and DROOLS-540
@mariofusco mariofusco merged commit 6dacbb1 into apache:master Sep 23, 2014
Rikkola added a commit to Rikkola/drools that referenced this pull request Jan 27, 2020
lucamolteni pushed a commit to lucamolteni/drools that referenced this pull request Oct 13, 2021
dupliaka pushed a commit to dupliaka/drools that referenced this pull request Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants