qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-7719) [Java Broker] Set response code to 500 when unexpected error occurs during REST call
Date Fri, 07 Apr 2017 14:58:41 GMT

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

ASF subversion and git services commented on QPID-7719:
-------------------------------------------------------

Commit 1790567 from orudyy@apache.org in branch 'java/trunk'
[ https://svn.apache.org/r1790567 ]

QPID-7719: [Java Broker] Set response code to 500 when unexpected error occurs during REST
call

> [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
>         Attachments: 0001-QPID-7719-Rethrow-fatal-exceptions-from-ExceptionHan.patch,
TEST-org.apache.qpid.systest.rest.VirtualHostRestTest.testCreateProvidedVirtualHost.txt
>
>
> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message