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

[Java Broker] VirtualHost#publishMessage throws NPE if request body is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • qpid-java-6.1
    • qpid-java-6.1.1
    • Broker-J
    • None

    Description

      There are still issues with VirtualHost#publishMessage:

      • if the REST request body contains an empty object ("{}") an (non-fatal) NPE occurs on the broker and the client receives a 500
      • if the "address" argument is missing or incorrect the message is silently dropped (also no log message). The client receives a 200 regardless.
      • Message download for messages published via REST seems broken in at least one case: {"message":{"address":"foo","content":"bar","mimeType":"text/plain"}} appears correct in the message preview in the View Message dialogue and the mimeType is also correct but when downloading the message the content is not correctly encoded. I could not find an encoding that gave me "bar". I did not investigate to see whether I could figure out what the bytes are.

      Attachments

        Issue Links

          Activity

            People

              kwall Keith Wall
              lorenz.quack Lorenz Quack
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: