shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Demers (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SHIRO-368) DomainPermission(string, string) constructor sets targets to the same value as actions
Date Fri, 15 Jul 2016 14:45:20 GMT

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

Brian Demers updated SHIRO-368:
-------------------------------
    Fix Version/s:     (was: 1.3.0)

> DomainPermission(string, string) constructor sets targets to the same value as actions
> --------------------------------------------------------------------------------------
>
>                 Key: SHIRO-368
>                 URL: https://issues.apache.org/jira/browse/SHIRO-368
>             Project: Shiro
>          Issue Type: Bug
>          Components: Authorization (access control) 
>    Affects Versions: 1.2.0
>         Environment: Windows XP SP3, Intel Core2 Duo
>            Reporter: Ben Johnson
>            Priority: Minor
>             Fix For: 1.2.1
>
>         Attachments: DomainPermission.java, DomainPermission.patch, DomainPermissionTest.java
>
>
> The DomainPermission(string, string) constructor incorrectly sets the 'targets' field
to the value supplied for 'actions':
> 055        public DomainPermission(String actions, String targets) {
> 056            this.domain = getDomain(getClass());
> 057            this.actions = StringUtils.splitToSet(actions, SUBPART_DIVIDER_TOKEN);
> 058            this.targets = StringUtils.splitToSet(actions, SUBPART_DIVIDER_TOKEN);
> 059            encodeParts(this.domain, actions, targets);
> 060        }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message