[jboss-jira] [JBoss JIRA] (DROOLS-2338) MemoryFileSystem losts contents of files all DRL scripts become "empty" if directory contains a space character

Mario Fusco (JIRA) issues at jboss.org
Tue Feb 20 06:28:00 EST 2018


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

Mario Fusco resolved DROOLS-2338.
---------------------------------
    Fix Version/s: 7.7.0.Final
       Resolution: Done


Fixed by https://github.com/kiegroup/drools/commit/4e47bc36180b8349b7b850b3b336666c030c2b1f

> MemoryFileSystem losts contents of files all DRL scripts become "empty" if directory contains a space character
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-2338
>                 URL: https://issues.jboss.org/browse/DROOLS-2338
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.4.1.Final, 7.5.0.Final, 7.6.0.Final
>         Environment: any
>            Reporter: Alexander Kotikhov
>            Assignee: Mario Fusco
>             Fix For: 7.7.0.Final
>
>         Attachments: Снимок экрана от 2018-02-19 18-08-49.png
>
>
> If a directory where any files are placed contains spaces 
> MemoryFileSystem.getFile(String path) returns object with truncated name.
> To fix this error (in version 7.4.0) it is nessassary line 107  
> *String name = decode( path ).substring( lastSlashPos + 1 );*
>    replace with 
> *String name = decode( path.substring( lastSlashPos + 1 ) );*



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list