You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2016/03/04 15:14:40 UTC

[jira] [Commented] (QPID-7124) [Java Broker] IndexOutOfBoundsException when attempting to create an object through the REST API with no path

    [ https://issues.apache.org/jira/browse/QPID-7124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15179923#comment-15179923 ] 

Rob Godfrey commented on QPID-7124:
-----------------------------------

The error message for the second case also leaves something to be desired - the error message should give info on what a valid URL would look like: e.g. http://localhost:8080/api/latest/queue/<virtual host node name>/<virtual host name>/<queue>

> [Java Broker] IndexOutOfBoundsException when attempting to create an object through the REST API with no path
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-7124
>                 URL: https://issues.apache.org/jira/browse/QPID-7124
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Rob Godfrey
>
> * PUT: http://localhost:8080/api/latest/queue with body content \{ "name": "newQueue" \} will result in an error (HTTP status 500 and a java.lang.IndexOutOfBoundsException in the broker's logs).
> * PUT: http://localhost:8080/api/latest/queue/newQueue with body content \{\} will result in an error, too (HTTP status 422 and errorMessage "Either parent path or full object path must be specified on object creation. Full object path must be specified on object update. Found [] of size 0 expecting 3")
> (See e-mail: http://qpid.2158936.n2.nabble.com/potential-java-broker-REST-API-bug-tp7639681.html )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org