nasa / Common-Metadata-Repository

Apache License 2.0
337 stars 92 forks source link

CMR-8976: Add 401 handling to transmit response handler for POST, PUT requests #2138

Closed zimzoom closed 2 months ago

zimzoom commented 2 months ago

Overview

What is the feature/fix?

Add 401 error handling to gracefully respond to POST/PUT requests with invalid Launchpad tokens

What is the Solution?

Added a 401 error handler

What areas of the application does this impact?

Search, Access Control, Ingest

Checklist

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 29.41%. Comparing base (cd7d20e) to head (b8e1058).

Files Patch % Lines
transmit-lib/src/cmr/transmit/http_helper.clj 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2138 +/- ## =========================================== - Coverage 57.94% 29.41% -28.53% =========================================== Files 1043 983 -60 Lines 70184 66851 -3333 Branches 1993 1155 -838 =========================================== - Hits 40669 19667 -21002 - Misses 27659 46080 +18421 + Partials 1856 1104 -752 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.