[
https://issues.apache.org/jira/browse/HDDS-9817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Pochatkin updated HDDS-9817:
------------------------------------
Description:
After HDDS-7752 S3 secret generate REST endpoint start to return 500 error in
case when S3 secret already exist for user.
As a solution we need to return response with correct code and message which
explain the root cause
{code:java}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 Request failed.</title>
</head>
<body><h2>HTTP ERROR 500 Request failed.</h2>
<table>
<tr><th>URI:</th><td>/secret/generate</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>Request failed.</td></tr>
<tr><th>SERVLET:</th><td>jaxrs</td></tr>
</table></body>
</html> {code}
Revoke REST endpoint also returns the same 500 error message in case when S3
secret doesn't exist
was:
After HDDS-7752 S3 secret generate REST endpoint start to return 500 error in
case when S3 secret already exist for user.
As a solution we need to return response with correct code and message which
explain the root cause
{code:java}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 Request failed.</title>
</head>
<body><h2>HTTP ERROR 500 Request failed.</h2>
<table>
<tr><th>URI:</th><td>/secret/generate</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>Request failed.</td></tr>
<tr><th>SERVLET:</th><td>jaxrs</td></tr>
</table></body>
</html> {code}
> S3 get secret endpoint returns 500
> ----------------------------------
>
> Key: HDDS-9817
> URL: https://issues.apache.org/jira/browse/HDDS-9817
> Project: Apache Ozone
> Issue Type: Bug
> Components: S3, s3gateway
> Affects Versions: 1.3.0
> Reporter: Mikhail Pochatkin
> Assignee: Mikhail Pochatkin
> Priority: Major
> Fix For: 1.4.0
>
>
> After HDDS-7752 S3 secret generate REST endpoint start to return 500 error in
> case when S3 secret already exist for user.
> As a solution we need to return response with correct code and message which
> explain the root cause
> {code:java}
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> <title>Error 500 Request failed.</title>
> </head>
> <body><h2>HTTP ERROR 500 Request failed.</h2>
> <table>
> <tr><th>URI:</th><td>/secret/generate</td></tr>
> <tr><th>STATUS:</th><td>500</td></tr>
> <tr><th>MESSAGE:</th><td>Request failed.</td></tr>
> <tr><th>SERVLET:</th><td>jaxrs</td></tr>
> </table></body>
> </html> {code}
> Revoke REST endpoint also returns the same 500 error message in case when S3
> secret doesn't exist
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]