You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Nikita Amelchev (Jira)" <ji...@apache.org> on 2023/03/09 12:20:00 UTC

[jira] [Updated] (IGNITE-18980) Fix REST status code in case of failed request

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

Nikita Amelchev updated IGNITE-18980:
-------------------------------------
    Summary: Fix REST status code in case of failed request  (was: Fix REST status code in case of failed cluster state change)

> Fix REST status code in case of failed request
> ----------------------------------------------
>
>                 Key: IGNITE-18980
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18980
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladimir Steshin
>            Assignee: Nikita Amelchev
>            Priority: Major
>              Labels: ise
>             Fix For: 2.15
>
>         Attachments: RestProcessorSuccessStatusTest.java
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> _GridRestResponse_ should obtain proper 'not-OK' status on error. Often, _GridRestResponse#getSuccessStatus()_ is `GridRestResponse#STATUS_SUCCESS` even if the response is actually an error. 
> Probably, we should revise _GridRestResponse#setError(String)_. It should set/check an error status like _GridRestResponse(int status, @Nullable String err)_
> A test attached.



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