You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Eric Chang (Jira)" <ji...@apache.org> on 2025/10/09 03:21:00 UTC

[jira] [Updated] (HDDS-13258) Refactor all HttpServletResponse#sendError usages to return JSON error responses

     [ https://issues.apache.org/jira/browse/HDDS-13258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Chang updated HDDS-13258:
------------------------------
    Description: 
As a follow-up to HDDS-13168, which replaced a direct call to {{HttpServletResponse#sendError}} in {{CheckUploadContentTypeFilter}} with a JSON error response written using the response writer, we should refactor all other usages of {{sendError}} in Ozone to adopt the same approach.

The implementation is splitted to several parts:
 * HttpConfServlet
 * HttpServer2
 * MetricsProxyEndpoint

  was:As a follow-up to HDDS-13168, which replaced a direct call to {{HttpServletResponse#sendError}} in {{CheckUploadContentTypeFilter}} with a JSON error response written using the response writer, we should refactor all other usages of {{sendError}} in Ozone to adopt the same approach.


> Refactor all HttpServletResponse#sendError usages to return JSON error responses
> --------------------------------------------------------------------------------
>
>                 Key: HDDS-13258
>                 URL: https://issues.apache.org/jira/browse/HDDS-13258
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Chu Cheng Li
>            Assignee: Eric Chang
>            Priority: Major
>
> As a follow-up to HDDS-13168, which replaced a direct call to {{HttpServletResponse#sendError}} in {{CheckUploadContentTypeFilter}} with a JSON error response written using the response writer, we should refactor all other usages of {{sendError}} in Ozone to adopt the same approach.
> The implementation is splitted to several parts:
>  * HttpConfServlet
>  * HttpServer2
>  * MetricsProxyEndpoint



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org