Qpid
  1. Qpid
  2. QPID-4806

qpid-config traceback in case of ACL denial

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22
    • Fix Version/s: 0.23
    • Component/s: Python Tools
    • Labels:
      None

      Description

      [Text from Leonid]

      The latest version of qpid-config tool shows an ugly traceback in case that the request was denied by ACL rule:

      [root@lzhaldyb-rhel63x ~]# qpid-config add exchange topic new -b user/password@localhost:5672
      Failed: UnauthorizedAccess: unauthorized-access: ACL denied queue create request from user@QPID (qpid/broker/Broker.cpp:1106)(403)
      Traceback (most recent call last):
      File "/usr/bin/qpid-config", line 772, in <module>
      sys.exit(main())
      File "/usr/bin/qpid-config", line 755, in main
      bm.Disconnect()
      File "/usr/bin/qpid-config", line 376, in Disconnect
      self.conn.close()
      File "<string>", line 6, in close
      File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 316, in close
      ssn.close(timeout=timeout)
      File "<string>", line 6, in close
      File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 739, in close
      self.sync(timeout=timeout)
      File "<string>", line 6, in sync
      File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 731, in sync
      if not self._ewait(lambda: not self.outgoing and not self.acked, timeout=timeout):
      File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 567, in _ewait
      self.check_error()
      File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 556, in check_error
      raise self.error
      qpid.messaging.exceptions.UnauthorizedAccess: unauthorized-access: ACL denied queue create request from user@QPID (qpid/broker/Broker.cpp:1106)(403)

        Activity

        Hide
        Justin Ross added a comment -
        Show
        Justin Ross added a comment - http://svn.apache.org/viewvc?view=revision&revision=1478311 Patch courtesy of Ernie Allen.
        Hide
        Justin Ross added a comment -
        Show
        Justin Ross added a comment - Released in Qpid 0.24, http://qpid.apache.org/releases/qpid-0.24/index.html

          People

          • Assignee:
            Justin Ross
            Reporter:
            Justin Ross
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development