qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Quack <quack.lor...@gmail.com>
Subject Re: potential java broker REST API bug
Date Mon, 07 Mar 2016 08:44:08 GMT

On 07/03/16 08:14, Rob Godfrey wrote:
> On 7 March 2016 at 07:06, Julien Charon <Julien.Charon@avitech.aero> wrote:
>> Indeed, copy paste error on this, sorry. I observed the behaviour not only
>> for DELETE, but also for PUT.
>> I.e. if I try to create a new queue and use a name of a queue that already
>> exists, e.g. "newQueue", the response sent will have HTTP status 200 and no
>> body content.
>> This means a client has no chance to find out that the queue already
>> existed and was not newly created.
>> So, if queue "newQueue" already existed, let's say configured as not
>> durable and the client sends a PUT request to create queue "newQueue"
>> configured as durable, the not durable queue "newQueue" will just continue
>> to exist. The client can only be aware of this if either the broker is
>> restarted and the queue will have disappeared or by checking the
>> configuration of the queue after having created it.
> I agree if the PUT to create an entity which is not identical on all
> attributes, then it should cause an error.  If the object that would be
> created is identical, then I think 200 is correct.
> -- Rob

How do you distinguish a PUT "to create an entity" from a PUT to modify 
an existing entity?


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

View raw message