Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-26590

When sending an error with an empty payload, the export service crashes with a 500

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No
    • Platform Pipeline Sprint 67

      Description

      If an application sends back an error through the internal API, and the incoming body doesn't have the expected keys, or has an empty JSON object "{}", the export service crashes.

      Steps to reproduce

      1. Spin up the export service.
      2. Modify the "example_export_error.json" file to be an empty JSON object "{}".
      3. Issue the "make sample-request-internal-error" command.

      Expected behavior.

      The service should return an 400 error instead, explaining that the payload is unexpected or invalid.

            comitche@redhat.com Cody Mitchell
            mbarcina@redhat.com Mikel Barcina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: