shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ledbrook <pe...@cacoethes.co.uk>
Subject Re: [jira] Created: (SHIRO-205) Filter configs cannot contain commas in INI format
Date Sun, 24 Oct 2010 13:55:00 GMT
> Filter configs cannot contain commas in INI format
> --------------------------------------------------
>
>                 Key: SHIRO-205
>                 URL: https://issues.apache.org/jira/browse/SHIRO-205
>             Project: Shiro
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 1.0.0
>            Reporter: Peter Ledbrook
>            Assignee: Peter Ledbrook
>             Fix For: 1.1.0
>
>
> Consider this configuration:
>
>    [urls]
>    /test/** = roles[guest, admin]
>
> The above won't work at the moment because PathMatchingFilter splits the right-hand value
into 'roles[guest' and 'admin]'. Commas inside square brackets should be ignored when splitting
the path value.

My proposed fix involves specifying '[' as the starting quote and ']'
as the end quote when using Shiro's split() method. One side-effect of
this approach is that " is no longer considered a quote character. Is
that OK? Do quote characters have any special meaning in filter chain
definitions?

Thanks,

Peter

Mime
View raw message