Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6034

The StompConnection class contains incorrect STOMP code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: STOMP
    • Labels:

      Description

      The org.apache.activemq.transport.stomp.StompConnection class contains incorrect code related to STOMP frame handling.

      On the receiving side, receive() uses StompWireFormat which is correct. However, the class also contains receiveFrame() which is not correct.

      On the sending side, most related methods use the StompFrame.format() method which is not correct, StompWireFormat.marshal() should be used instead.

      So, StompWireFormat should be used in all the marshal/unmarshal operations and equivalent code should be removed from the related classes like StompConnection.

        Attachments

          Activity

            People

            • Assignee:
              mattrpav Matt Pavlovich
              Reporter:
              lionel.cons Lionel Cons
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: