[
https://issues.jboss.org/browse/DROOLS-1905?page=com.atlassian.jira.plugi...
]
Enrique González Martínez commented on DROOLS-1905:
---------------------------------------------------
{code}
final String fName = URLEncoder.encode("100% test.java",
"UTF-8");
final String pName = "/path/to/" + fName;
final MemoryFile mFile = (MemoryFile) memoryFileSystem.getFile(pName);
memoryFileSystem.setFileContents(mFile, new byte[] {});
for(String file : memoryFileSystem.getFileNames()) {
System.out.println("file: " + file);
}
{code}
problem lies that while the file name sets the file content encoded the memory file system
decodes it (internally) leading to a strange situation where getFileNames come already
decoded... so calling getFile causes to try to decode a file name already decoded.
Use of the "%" sign in the title
--------------------------------
Key: DROOLS-1905
URL:
https://issues.jboss.org/browse/DROOLS-1905
Project: Drools
Issue Type: Bug
Components: Guided Rule Editor
Affects Versions: 6.5.0.Final
Reporter: Petr Farmakovsky
Assignee: Enrique González Martínez
Labels: drools-tools
Attachments: 14-12-2016 19-28-17.gif
When you save rules or other objects Drools Workbench allows the use of the "%"
sign in the title. Opening of any rule results in an error if there is an object with
title containing "%" sign in the repository.
It is impossible to build and publish the project.
Error message: URLDecoder: Illegal hex characters in escape (%) pattern - For input
string: "s."
!14-12-2016 19-28-17.gif!
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)