Skip to content

Redirect to /error only for html pages, not api calls#1577

Merged
netomi merged 1 commit intomasterfrom
fix-api-responses
Feb 1, 2026
Merged

Redirect to /error only for html pages, not api calls#1577
netomi merged 1 commit intomasterfrom
fix-api-responses

Conversation

@netomi
Copy link
Contributor

@netomi netomi commented Feb 1, 2026

This fixes #1576.

The custom error handler needs to extend from the BasicErrorHandler to not lose default functionality of spring boot.

Also the redirect to /error only happens when requesting html pages, it does not make sense and leads to wrong behavior when handling api calls that normally return json.

@netomi netomi merged commit 8032afe into master Feb 1, 2026
8 checks passed
@netomi netomi deleted the fix-api-responses branch February 1, 2026 20:00
janbro pushed a commit to yeeth-security/openvsx that referenced this pull request Feb 11, 2026
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.

Ensure that no endpoint throws exceptions but rather returns a proper response

1 participant