Skip to content

Read response in auth before raising error for 403 exceptions - #140

Merged
btravisebsco merged 2 commits into
masterfrom
fix/403-error-response-not-making-it-through
Jun 10, 2026
Merged

Read response in auth before raising error for 403 exceptions#140
btravisebsco merged 2 commits into
masterfrom
fix/403-error-response-not-making-it-through

Conversation

@btravisebsco

Copy link
Copy Markdown

The recent change to 403 handling in FolioAuth to work around transitory 403 errors was swallowing the content of the response (the missing permission) for actual 403 errors. Add a response.read() before raising the error.

@sonarqubecloud

sonarqubecloud Bot commented Jun 10, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@btravisebsco
btravisebsco merged commit 2c4c6c9 into master Jun 10, 2026
6 checks passed
@btravisebsco
btravisebsco deleted the fix/403-error-response-not-making-it-through branch June 10, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants