Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-373

qdmanage : no clear error message when "read" type linkRoute, address and autoLink

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            ppatierno Paolo Patierno
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: