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

Don't raise 500 when path is too short #4

Merged
merged 3 commits into from
Dec 23, 2021

Conversation

kubukoz
Copy link
Member

@kubukoz kubukoz commented Dec 23, 2021

Manual reproduction (before this change):

Start pizza service, send a request to /. This will fail with a 500 (index out of bounds: i = 0, array size = 0) regardless of the backend, as long as it uses HttpEndpoint.matches.

@kubukoz kubukoz requested a review from Baccata December 23, 2021 19:21
@kubukoz kubukoz added the bug Something isn't working label Dec 23, 2021

object MatchPathSpec extends FunSuite {
object MatchPathSpec extends SimpleMutableIOSuite with Checkers {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nitpick but SimpleMutableIOSuite is aliased as SimpleIOSuite in weaver.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, Metals doesn't help with alias suggestions 😅

@Baccata Baccata merged commit 51636e3 into disneystreaming:main Dec 23, 2021
@kubukoz kubukoz deleted the path-matching branch December 23, 2021 20:40
Baccata added a commit that referenced this pull request May 10, 2022
Don't raise 500 when path is too short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants