[jboss-jira] [JBoss JIRA] (DROOLS-525) initConfigFilePath() will fail to set correct path when containing whitespace

Raphael Boidol (JIRA) issues at jboss.org
Fri Jun 13 15:30:38 EDT 2014


Raphael Boidol created DROOLS-525:
-------------------------------------

             Summary: 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.1.0.CR1, 6.0.1.Final
            Reporter: Raphael Boidol
            Assignee: Mark Proctor


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().



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list