Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8657

[Broker-J] ACL - Posting unknown attributes leaves broker in bad internal state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • qpid-java-broker-9.0.0
    • qpid-java-broker-9.2.0
    • Broker-J
    • None

    Description

      When POSTing an ACL rule with unknown attributes to the Qpid HTTP management API, the server responds with HTTP 422, Unprocessable Entity. This is somewhat OK, however, I think maybe a 400 Bad Request would be more appropriate.

      But after the post, the broker is somehow left in a bad internal state, as the returned Json is incomplete and unparseable.

      Example POST in aclRequest.json

      Qpid log from the incident qpidErrorLog.txt

      Returned Json from subsequent GET resultingAcl.json

       

      Attachments

        1. aclRequest.json
          0.3 kB
          Kyrre
        2. qpidErrorLog.txt
          11 kB
          Kyrre
        3. resultingAcl.json
          0.3 kB
          Kyrre

        Activity

          People

            Unassigned Unassigned
            kyrre Kyrre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: