[jboss-jira] [JBoss JIRA] (AS7-3561) change validate-address operation contract
Alexey Loubyansky (JIRA)
jira-events at lists.jboss.org
Fri Feb 17 12:45:37 EST 2012
[ https://issues.jboss.org/browse/AS7-3561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668982#comment-12668982 ]
Alexey Loubyansky commented on AS7-3561:
----------------------------------------
Small correction...
// or a non-root address
ModelNode address = op.get("value").setEmptyList();
address.add("deployment", "my-app.war");
You don't have to setEmptyList() before adding elements. It was just copy&paste, sorry.
> change validate-address operation contract
> ------------------------------------------
>
> Key: AS7-3561
> URL: https://issues.jboss.org/browse/AS7-3561
> Project: Application Server 7
> Issue Type: Task
> Components: Domain Management
> Reporter: Alexey Loubyansky
> Assignee: Alexey Loubyansky
> Fix For: 7.1.0.Final
>
>
> Current implementation is not safe in a sense that the operation fails if the address is not valid. There is no safe way, i.e. a boolean result, not a failure, to check whether an address is valid.
> The idea is to change the current validate-address so that:
> - it's only a root operation, not inherited like the current impl;
> - add an address argument (the current impl has no arguments), which will be the address to check;
> - the result type should be a boolean value;
> - in case of failure, include a message into the response describing which part of the address is wrong.
--
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