Valentin Kulichenko created IGNITE-5081:
-------------------------------------------

             Summary: SecurityPermissionSetBuilder duplicates permission if 
it's appended more than once
                 Key: IGNITE-5081
                 URL: https://issues.apache.org/jira/browse/IGNITE-5081
             Project: Ignite
          Issue Type: Bug
          Components: general
    Affects Versions: 1.9
            Reporter: Valentin Kulichenko
            Assignee: Valentin Kulichenko
             Fix For: 2.1


If the same permission is appended to builder more than once, builder 
duplicates it in the resulting collection. This doesn't actually break 
anything, but seems to be redundant.

Example:
{code}
new SecurityPermissionSetBuilder()
    .appendSystemPermissions(ADMIN_VIEW)
    .appendSystemPermissions(ADMIN_VIEW, ADMIN_QUERY)
    .build();
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to