You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Francois Papon (Jira)" <ji...@apache.org> on 2019/10/10 15:24:00 UTC

[jira] [Resolved] (SHIRO-684) INI parser keeps escape characters in keys and values

     [ https://issues.apache.org/jira/browse/SHIRO-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Papon resolved SHIRO-684.
----------------------------------
    Resolution: Fixed

> 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
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)