[ 
https://issues.apache.org/jira/browse/SHIRO-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13677956#comment-13677956
 ] 

chris hughes commented on SHIRO-437:
------------------------------------

I think this is a more serious issue than trivial and should be fixed. It 
should be possible to construct the permission from the string and back again, 
                
> WildcardPermission: conformed toString
> --------------------------------------
>
>                 Key: SHIRO-437
>                 URL: https://issues.apache.org/jira/browse/SHIRO-437
>             Project: Shiro
>          Issue Type: Improvement
>          Components: Authorization (access control) 
>    Affects Versions: 1.3.0
>            Reporter: picpoc
>            Priority: Trivial
>              Labels: patch
>             Fix For: 1.3.0
>
>         Attachments: wildcardpermission-tostring.patch
>
>
> Attached patch enhances [SHIRO-75], updating WildcardPermission.toString() to 
> return conform wildcard expression, in order to satisfy assertions like:
> WildcardPermission p1 = new WildcardPermission("foo,bar:baz:*");
> assert p1.equals(new WildcardPermission(p1.toString());

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to