Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9817

S3 get secret endpoint returns 500

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.3.0
    • 1.4.0
    • S3, s3gateway
    • None

    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  

      <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> 

      Revoke REST endpoint also returns the same 500 error message in case when S3 secret doesn't exist

      Attachments

        Activity

          People

            PochatkinMikhail Mikhail Pochatkin
            PochatkinMikhail Mikhail Pochatkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: