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

Alexander Kotikhov (JIRA) issues at jboss.org
Mon Feb 19 10:23:00 EST 2018


Alexander Kotikhov created DROOLS-2338:
------------------------------------------

             Summary: 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.6.0.Final, 7.5.0.Final, 7.4.1.Final
         Environment: any
            Reporter: Alexander Kotikhov
            Assignee: Mario Fusco
         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