]
Mario Fusco resolved DROOLS-525.
--------------------------------
Fix Version/s: 6.1.0.Final
Resolution: Done
Fixed by
initConfigFilePath() will fail to set correct path when containing
whitespace
-----------------------------------------------------------------------------
Key: DROOLS-525
URL:
https://issues.jboss.org/browse/DROOLS-525
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.0.1.Final, 6.1.0.CR1
Reporter: Raphael Boidol
Assignee: Mario Fusco
Fix For: 6.1.0.Final
When an application with kie-spring using KModuleBeanFactoryPostProcessor runs in an
directory with a path containing whitespace, initConfigFilePath() will fail to correctly
initialize the private variable configFilePath. The path will be url encoded, therefore
the later configuration of KIE will fail to initialize the beans properly.
The reason is that getClass().getResource("/") will return an URL. This can be
fixed by using getClass().getResource("/").toURI().