Closed alexanderbartels closed 3 years ago
Thanks for detecting this nasty bug!
I've just created a PR. It should be fixed with version 3.4.8
great! Thanks i will try it once it is released. 👍
Version 3.4.8 released. 🚀
updated my project, everything works as expected now. Thanks for the fast fix!
Hi, thanks for the great work on this project. It looks very promising and i have choosen it to build a framework for microfrontends on top of it. While developing it i faced the following problem:
Describe the bug Server with a named route parameter crashes if an invalid parameter is defined. Before the server is terminated it shows a
URIError: URI malformed
Exception.To Reproduce
I pass a string like
@some-name/another-name
but before i useencodeURIComponent("@some-name/another-name")
to use it in a url. So it results in a Request like:GET /mf/%40some-name%2Fanother-name
. The parameter is passed decoded and everything works as expected!But if the URL contains invalid characters, e.g.
GET /mf/%mf-test%2Ffoobar
, the decoding fails with an exception and the whole server crashes.Expected behavior Instead of crashing the whole server it should keep running stable and return a Bad-Request Error.
Desktop (please complete the following information):
v14.12.0
If you can point me in the right direction, i'm happy to implement a change and submit a pull request.