[jboss-jira] [JBoss JIRA] (WFLY-8590) AS Testsuite helper class FileSystemRealm doesn't map roles correctly

Darran Lofthouse (JIRA) issues at jboss.org
Fri Apr 28 11:19:00 EDT 2017


     [ https://issues.jboss.org/browse/WFLY-8590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated WFLY-8590:
-----------------------------------
    Fix Version/s: 11.0.0.Beta1


> AS Testsuite helper class FileSystemRealm doesn't map roles correctly
> ---------------------------------------------------------------------
>
>                 Key: WFLY-8590
>                 URL: https://issues.jboss.org/browse/WFLY-8590
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Josef Cacek
>            Assignee: Josef Cacek
>             Fix For: 11.0.0.Beta1
>
>
> Coverity scan found issue in following code in {{FileSystemRealm}} class in {{testsuite/shared}} module:
> {code:java}
> String.format("/subsystem=elytron/filesystem-realm=%s/identity=%s:add-attribute(name=groups, value=[%s])",
>   name, user.getName(), user.getPassword(), String.join(",", user.getRoles())));
> {code}
> The code contains 3x %s, but 4x parametr.
> The param {{user.getPassword()}} is a C/P leftover and should be removed.
> https://github.com/wildfly/wildfly/blob/9a2abd640a01749efcf864a1184b025a0d7dd212/testsuite/shared/src/main/java/org/wildfly/test/security/common/elytron/FileSystemRealm.java#L64



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list