Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Server Errors Because of Unencoded Error Outputs #706

Merged
merged 1 commit into from
May 7, 2022

Conversation

alexanderkiel
Copy link
Member

@alexanderkiel alexanderkiel commented May 7, 2022

This problem was introduced in v0.17.1. Versions of Blaze before v0.17.1 are not effected.

HTTP Error Outputs with status codes 404 and 405 were not encoded to either JSON or XML, leading to an error in Jetty, leading to a 500.

This commit also introduces redirecting requests including a leading slash to ones without one.

This problem was introduced in v0.17.1. Versions of Blaze before v0.17.1
are not effected.

HTTP Error Outputs with status codes 404 and 405 were not encoded to
either JSON or XML, leading to an error in Jersey, leading to a 500.

This commit also introduces redirecting requests including a leading
slash to ones without one.
@alexanderkiel alexanderkiel self-assigned this May 7, 2022
@alexanderkiel alexanderkiel added the bug Something isn't working label May 7, 2022
@alexanderkiel alexanderkiel added this to the v0.17.2 milestone May 7, 2022
@codecov
Copy link

codecov bot commented May 7, 2022

Codecov Report

Merging #706 (b2d2ad2) into develop (8622c59) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #706   +/-   ##
========================================
  Coverage    93.64%   93.64%           
========================================
  Files          237      237           
  Lines        14173    14174    +1     
  Branches       356      356           
========================================
+ Hits         13272    13273    +1     
  Misses         545      545           
  Partials       356      356           
Impacted Files Coverage Δ
modules/rest-api/src/blaze/rest_api.clj 89.39% <100.00%> (+0.33%) ⬆️
.../rest-api/src/blaze/rest_api/middleware/output.clj 100.00% <100.00%> (ø)
modules/rest-util/src/blaze/handler/util.clj 68.03% <100.00%> (-0.77%) ⬇️

@alexanderkiel alexanderkiel merged commit d5b0c68 into develop May 7, 2022
@alexanderkiel alexanderkiel deleted the fix-unencodes-errors branch May 7, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:rest-api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant