qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wall (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-7908) [Java Broker, REST] Improve exception handling and error reporting in web management
Date Fri, 22 Sep 2017 09:34:00 GMT

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

Keith Wall commented on QPID-7908:
----------------------------------

If the server produces a 500 response for some reason for a REST API response, currently the
response returned is html.

> [Java Broker, REST] Improve exception handling and error reporting in web management
> ------------------------------------------------------------------------------------
>
>                 Key: QPID-7908
>                 URL: https://issues.apache.org/jira/browse/QPID-7908
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Broker
>    Affects Versions: qpid-java-6.0, qpid-java-6.0.1, qpid-java-6.0.3, qpid-java-6.0.4,
qpid-java-6.0.5, qpid-java-6.0.6, qpid-java-6.0.7, qpid-java-6.1, qpid-java-6.1.1, qpid-java-6.1.2,
qpid-java-broker-7.0.0, qpid-java-6.1.3, qpid-java-6.1.4, qpid-java-6.0.8
>            Reporter: Alex Rudyy
>             Fix For: Future
>
>
> Exception in web managements are handled in multiple places:
>  * RestServlet itself
>  * ExceptionHandlingFilter
>  * HttpManagement$ErrorHandler
> Exception handling in RestServlet results in json response generation with error details,
but exception handling in ExceptionHandlingFilter and HttpManagement$ErrorHandler does not
produce the json response. As result, REST client can receive empty response claiming to be
application/json or text/plain response, when valid application/json response is expected.
> We need to improve the exception handling and generate application/json response with
error details for any REST application/json request. 
> Additionally we can formalize and improve the format of the response with error details.
At the moment, out response consist of errorMessage field. Potentially, we can improve the
error response format that follow some of common practices for errored responses.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message