[
https://issues.apache.org/jira/browse/SHIRO-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Jensen updated SHIRO-684:
--------------------------------
Description: If I have a .ini file and I want to escape a character, the
ini parser does not remove the escape character. For example, with a role such
as "System\ Administrator = permissions" the key becomes "System\
Administrator" and the value "permissions", i.e. the escape char \ is not
removed. The bug is in Ini.Section.splitKeyValue(String). The code checks for
an escape character but does not skip or remove the escape character from the
buffer. (was: If I have a .ini file and I want to escape a character, the ini
parser does not remove the escape character. For example, with a role such as
"System\ Administrator = permissions" the key becomes "System\ Administrator"
and the value "permissions", i.e. the the escape char \ is not removed. The bug
is in Ini.Section.splitKeyValue(String). The code checks for an escape
character but does not skip or remove the escape character from the buffer.)
> INI parser keeps escape characters in keys and values
> -----------------------------------------------------
>
> Key: SHIRO-684
> URL: https://issues.apache.org/jira/browse/SHIRO-684
> Project: Shiro
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 1.3.2, 1.4.0
> Reporter: Nathan Jensen
> Assignee: Francois Papon
> Priority: Major
> Fix For: 1.5.0
>
>
> If I have a .ini file and I want to escape a character, the ini parser does
> not remove the escape character. For example, with a role such as "System\
> Administrator = permissions" the key becomes "System\ Administrator" and the
> value "permissions", i.e. the escape char \ is not removed. The bug is in
> Ini.Section.splitKeyValue(String). The code checks for an escape character
> but does not skip or remove the escape character from the buffer.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)