You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Paolo Patierno (JIRA)" <ji...@apache.org> on 2016/06/09 08:26:21 UTC

[jira] [Commented] (DISPATCH-373) qdmanage : no clear error message when "read" type linkRoute, address and autoLink

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

Paolo Patierno commented on DISPATCH-373:
-----------------------------------------

I have just checked that it's the same with "delete" operation ...

[root@localhost /]# qdmanage -b localhost:5673 delete --type linkRoute
BadRequestStatus: Bad Request
[root@localhost /]# qdmanage -b localhost:5673 delete --type address
BadRequestStatus: Bad Request
[root@localhost /]# qdmanage -b localhost:5673 delete --type autoLink
BadRequestStatus: Bad Request

with no AGENT error on the router.
It works fine with another entity (i.e. connector).

[root@localhost /]# qdmanage -b localhost:5673 delete --type connector
BadRequestStatus: No name or identity provided

with AGENT error on the router.

Thu Jun  9 08:23:37 2016 AGENT (error) Error dispatching Message(address=None, properties={'operation': 'DELETE', 'type': 'org.apache.qpid.dispatch.connector'}, body={}, reply_to='amqp:/_topo/0/Router.A/temp.72AghI2_aUKEPEe', correlation_id=1L): No name or identity provided
Traceback (most recent call last):
  File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 790, in receive
    status, body = self.handle(request)
  File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 815, in handle
    target = self.find_entity(request)
  File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 892, in find_entity
    raise BadRequestStatus("No name or identity provided")
BadRequestStatus: No name or identity provided


> qdmanage : no clear error message when "read" type linkRoute, address and autoLink
> ----------------------------------------------------------------------------------
>
>                 Key: DISPATCH-373
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-373
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Paolo Patierno
>
> Executing a bad request with "read" operation (only ---type option) produces following results for linkRoute, address and autoLink :
> [root@localhost /]# qdmanage -b localhost:5673 read --type linkRoute
> BadRequestStatus: Bad Request
> [root@localhost /]# qdmanage -b localhost:5673 read --type address
> BadRequestStatus: Bad Request
> [root@localhost /]# qdmanage -b localhost:5673 read --type autoLink
> BadRequestStatus: Bad Request
> and the router doesn't produce any error or output on the console.
> Instead, using another type, for example connector produces following result :
> [root@localhost /]# qdmanage -b localhost:5673 read --type connector
> BadRequestStatus: No name or identity provided
> with a clearer error on what user misses on the command line.
> At same time the router output shows following error to the console :
> Thu Jun  9 07:26:13 2016 AGENT (error) Error dispatching Message(address=None, properties={'operation': 'READ', 'type': 'org.apache.qpid.dispatch.connector'}, body={}, reply_to='amqp:/_topo/0/Router.A/temp.JJRdbcd9RbPxemN', correlation_id=1L): No name or identity provided
> Traceback (most recent call last):
>   File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 790, in receive
>     status, body = self.handle(request)
>   File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 815, in handle
>     target = self.find_entity(request)
>   File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 892, in find_entity
>     raise BadRequestStatus("No name or identity provided")
> BadRequestStatus: No name or identity provided
> I guess that for all types provided, missing name or identity, the behavior should be the same.



--
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