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

Mario Fusco (JIRA) issues at jboss.org
Fri Jun 27 09:27:24 EDT 2014


     [ https://issues.jboss.org/browse/DROOLS-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco updated DROOLS-525:
-------------------------------

    Labels: backport-to-6.0.x  (was: )


> 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
>              Labels: backport-to-6.0.x
>             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().



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


More information about the jboss-jira mailing list