Qpid
  1. Qpid
  2. QPID-3063

Python Client messaging/endpoints.py Connection Class: def check_closed(self): method crashes when called.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.9
    • Component/s: Python Client
    • Labels:
      None
    • Environment:

      RHEL 5.0 Python2.7

      Description

      When calling the Connection Classes .check_closed method an exception is raised:

      Traceback (most recent call last):
      File "<test>/Harness_Test.py", line 24, in test_create_connection
      self.assertFalse(connection.check_closed() )
      File "/usr/local/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 200, in check_closed
      if self.closed:
      AttributeError: Connection instance has no attribute 'closed'

      The fix is pretty simple, get rid of the method, or add a self.closed flag to indicate failure...

      1. QPID-3063.patch
        0.9 kB
        Gordon Sim

        Activity

        Nick Capito created issue -
        Gordon Sim made changes -
        Field Original Value New Value
        Assignee Gordon Sim [ gsim ]
        Hide
        Gordon Sim added a comment -

        Suggested fix + test

        Show
        Gordon Sim added a comment - Suggested fix + test
        Gordon Sim made changes -
        Attachment QPID-3063.patch [ 12471923 ]
        Gordon Sim made changes -
        Fix Version/s 0.9 [ 12315382 ]
        Gordon Sim made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Gordon Sim
            Reporter:
            Nick Capito
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development