[jboss-jira] [JBoss JIRA] (WFCORE-2672) list-add doesn't work for principal-query attribute of jdbc-realm

Michal Petrov (JIRA) issues at jboss.org
Thu Apr 13 07:42:00 EDT 2017


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

Michal Petrov moved JBEAP-10345 to WFCORE-2672:
-----------------------------------------------

        Project: WildFly Core  (was: JBoss Enterprise Application Platform)
            Key: WFCORE-2672  (was: JBEAP-10345)
       Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
    Component/s: Security
                     (was: Security)


> list-add doesn't work for principal-query attribute of jdbc-realm
> -----------------------------------------------------------------
>
>                 Key: WFCORE-2672
>                 URL: https://issues.jboss.org/browse/WFCORE-2672
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Security
>            Reporter: Michal Petrov
>            Assignee: Michal Petrov
>            Priority: Critical
>
> Previously it was possible to use the list-add, list-remove operations to add and remove items from a principal-query (type LIST), but doesn't work at the recent version:
> The list operation is important for web console, as it should manipulate the list items individually, instead to use write-attribute as this is going to handle all items in the list.
> Add a jdbc-realm
> {code}
> /profile=full/subsystem=elytron/jdbc-realm=jdbc3:add(principal-query=[{data-source=ExampleDS,sql="select test from table"}])
> {code}
> Display its content
> {code}
> /profile=full/subsystem=elytron/jdbc-realm=jdbc3:list-get(name=principal-query,index=0)
> {
>     "outcome" => "success",
>     "result" => {
>         "data-source" => "ExampleDS",
>         "sql" => "select test from table"
>     }
> }
> {code}
> However to add more principal-query items doesn't work
> {code}
> /profile=full/subsystem=elytron/jdbc-realm=jdbc3:list-add(name=principal-query,value={sql="select other from table2",data-source="ExampleDS"})
> {
>     "outcome" => "failed",
>     "failure-description" => {"domain-failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException"},
>     "rolled-back" => true
> }
> {code}



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


More information about the jboss-jira mailing list