Github user johnament commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/86#discussion_r34987573
--- Diff:
artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
---
@@ -66,7 +66,7 @@ public ActiveMQBuffer toActiveMQBuffer() throws Exception
head.append(h.getEncodedValue());
head.append(Stomp.NEWLINE);
}
- if (bytesBody != null && bytesBody.length > 0)
+ if (bytesBody != null && bytesBody.length > 0 &&
!hasHeader(Stomp.Headers.CONTENT_LENGTH))
--- End diff --
Does this introduce any form of a security issue? What happens on the
receiver side if the content length doesn't match the header?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---