[
https://issues.apache.org/jira/browse/AMQ-9330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836200#comment-17836200
]
Christopher L. Shannon commented on AMQ-9330:
---------------------------------------------
The issue was we needed to call the complete() method on the context (otherwise
the spec says 500 error is returned) and also set the right status code, I made
the change updated tests to verify
> Polling empty queue via REST returns 500 Server Error
> -----------------------------------------------------
>
> Key: AMQ-9330
> URL: https://issues.apache.org/jira/browse/AMQ-9330
> Project: ActiveMQ Classic
> Issue Type: Bug
> Affects Versions: 5.18.2
> Reporter: Michael Hoyt
> Assignee: Christopher L. Shannon
> Priority: Major
> Fix For: 5.18.5, 6.1.2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In AMQ 5.18.1 Polling an empty queue via the REST api returned a 204 No
> Content response. In 5.18.2 that same method now returns a 500 Server Error
> response.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)