[jboss-jira] [JBoss JIRA] (WFLY-11830) Writing an invalid operation to pooled-connection-factory's transaction attribute should fail the mgmt operation

Petr Kremensky (Jira) issues at jboss.org
Mon Mar 11 05:41:00 EDT 2019


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

Petr Kremensky updated WFLY-11830:
----------------------------------
    Description: 
Current behaviour:
{noformat}
[standalone at localhost:9990 /] /subsystem=messaging-activemq/server=default/pooled-connection-factory=activemq-ra:write-attribute(name=transaction,value=invalid)
10:26:37,062 WARN  [org.wildfly.extension.messaging-activemq] (management-handler-thread - 1) WFLYMSGAMQ0101: Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied.
{"outcome" => "success"}

[standalone at localhost:9990 /]  /subsystem=messaging-activemq/server=default/pooled-connection-factory=activemq-ra:read-attribute(name=transaction)
{
    "outcome" => "success",
    "result" => "xa"
}
{noformat}

To make it clear, the 
{noformat}
10:26:37,062 WARN  [org.wildfly.extension.messaging-activemq] (management-handler-thread - 1) WFLYMSGAMQ0101: Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied.
{noformat} 
message comes from server side, so as a client I have no idea that my mgmt operation did not happend (write didn't happen).

The management operation should fail in this case, and "Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied." message should be part of failure description instead.

  was:
Current behaviour:
{noformat}
[standalone at localhost:9990 /] /subsystem=messaging-activemq/server=default/pooled-connection-factory=activemq-ra:write-attribute(name=transaction,value=invalid)
10:26:37,062 WARN  [org.wildfly.extension.messaging-activemq] (management-handler-thread - 1) WFLYMSGAMQ0101: Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied.
{"outcome" => "success"}

[standalone at localhost:9990 /]  /subsystem=messaging-activemq/server=default/pooled-connection-factory=activemq-ra:read-attribute(name=transaction)
{
    "outcome" => "success",
    "result" => "xa"
}
{noformat}

The management operation should fail in this case, and "Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied." message should be part of failure description instead.



> Writing an invalid operation to pooled-connection-factory's transaction attribute should fail the mgmt operation
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-11830
>                 URL: https://issues.jboss.org/browse/WFLY-11830
>             Project: WildFly
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 16.0.0.Final
>            Reporter: Petr Kremensky
>            Assignee: ehsavoie Hugonnet
>            Priority: Major
>
> Current behaviour:
> {noformat}
> [standalone at localhost:9990 /] /subsystem=messaging-activemq/server=default/pooled-connection-factory=activemq-ra:write-attribute(name=transaction,value=invalid)
> 10:26:37,062 WARN  [org.wildfly.extension.messaging-activemq] (management-handler-thread - 1) WFLYMSGAMQ0101: Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied.
> {"outcome" => "success"}
> [standalone at localhost:9990 /]  /subsystem=messaging-activemq/server=default/pooled-connection-factory=activemq-ra:read-attribute(name=transaction)
> {
>     "outcome" => "success",
>     "result" => "xa"
> }
> {noformat}
> To make it clear, the 
> {noformat}
> 10:26:37,062 WARN  [org.wildfly.extension.messaging-activemq] (management-handler-thread - 1) WFLYMSGAMQ0101: Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied.
> {noformat} 
> message comes from server side, so as a client I have no idea that my mgmt operation did not happend (write didn't happen).
> The management operation should fail in this case, and "Invalid value invalid for transaction, legal values are [local, none, xa], default value is applied." message should be part of failure description instead.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list