[jboss-jira] [JBoss JIRA] (AS7-3476) cache-container=foo/:add-alias fails if the list starts out undefined

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Fri Jan 27 10:25:50 EST 2012


    [ https://issues.jboss.org/browse/AS7-3476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662445#comment-12662445 ] 

Richard Achmatowicz commented on AS7-3476:
------------------------------------------

Fixed by adding in a check for ALIASES model node being undefined:
- in the case of addAliases(), the model node is initialised using setEmptyList() before processing begins
- in the case of removeAlias(), an OperationFailedException is raised when trying to remove an alias from an undefined (empty) list
Thanks!
                
> cache-container=foo/:add-alias fails if the list starts out undefined
> ---------------------------------------------------------------------
>
>                 Key: AS7-3476
>                 URL: https://issues.jboss.org/browse/AS7-3476
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Stan Silvert
>            Assignee: Richard Achmatowicz
>
> Below, see JBAS014749: Operation handler failed: null
> /subsystem=infinispan/cache-container=foo/:read-attribute(name=aliases)
> {
>     "outcome" => "success",
>     "result" => undefined,
>     "response-headers" => {"process-state" => "reload-required"}
> }
> /subsystem=infinispan/cache-container=foo/:add-alias(name=foo2)
> {
>     "outcome" => "failed",
>     "failure-description" => "JBAS014749: Operation handler failed: null",
>     "rolled-back" => true,
>     "response-headers" => {"process-state" => "reload-required"}
> }
> /subsystem=infinispan/cache-container=foo/:write-attribute(name=aliases,value=["foo2"])
> {
>     "outcome" => "success",
>     "response-headers" => {
>         "operation-requires-reload" => true,
>         "process-state" => "reload-required"
>     }
> }
> /subsystem=infinispan/cache-container=foo/:add-alias(name=foo3)
> {
>     "outcome" => "success",
>     "response-headers" => {
>         "operation-requires-reload" => true,
>         "process-state" => "reload-required"
>     }
> }
> /subsystem=infinispan/cache-container=foo/:read-attribute(name=aliases)
> {
>     "outcome" => "success",
>     "result" => [
>         "foo2",
>         "foo3"
>     ],
>     "response-headers" => {"process-state" => "reload-required"}
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list