[ 
https://issues.apache.org/jira/browse/QPID-7719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15949037#comment-15949037
 ] 

Lorenz Quack commented on QPID-7719:
------------------------------------

IIRC, I raised this JIRA after seeing this occur on a failing Jenkins test and 
being able to reproduce it. If memory serves there were some bugs in the 
initial commit on QPID-7663 which caused a StoreException to be thrown. The 
issue was then fixed in r1788096. 

> [Java Broker] Set response code to 500 when unexpected error occurs during 
> REST call 
> -------------------------------------------------------------------------------------
>
>                 Key: QPID-7719
>                 URL: https://issues.apache.org/jira/browse/QPID-7719
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Lorenz Quack
>
> Currently if there is an unhandled exception in the REST layer we do not set 
> a error response code. The servlet ends up returning 200 which is clearly 
> incorrect.
> we should set the error code to 500 and ideally return a JSON error message.
> The code in question is the final {{else}} block in 
> {{RestServlet#setResponseStatus}} (~line 960). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to