[
https://issues.apache.org/jira/browse/AMQ-7125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16751287#comment-16751287
]
Avinash Dongre commented on AMQ-7125:
-------------------------------------
Hi, [~gtully] I initially wrote the same code as your commit (Just throwing the
protocolException on empty destination). Although it does
send the error frame back to the client, it does not close the connection. But
the specification says that the connection should be closed.
https://stomp.github.io/stomp-specification-1.2.html#SUBSCRIBE
> AMQ broker does not send the error frame back to the websocket client when an
> empty destination is sent with a stomp subscribe frame
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-7125
> URL: https://issues.apache.org/jira/browse/AMQ-7125
> Project: ActiveMQ
> Issue Type: Bug
> Components: stomp
> Affects Versions: 5.15.8
> Reporter: Avinash Dongre
> Assignee: Gary Tully
> Priority: Major
> Fix For: 5.16.0
>
>
> AMQ broker does not send the error frame back to the WebSocket client when an
> empty destination is sent with a stomp subscribe frame. Only the connection
> is terminated.
> As per stomp specification:
> "If the server cannot successfully create the subscription, the server MUST
> send the client an ERROR frame and disconnect the client."
> [https://stomp.github.io/stomp-specification-1.1.html#SUBSCRIBE]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)