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: regular handler under mounted app #3430

Merged
merged 3 commits into from
Apr 28, 2024

Conversation

peterschutt
Copy link
Contributor

@peterschutt peterschutt commented Apr 26, 2024

Fix an issue where a regular handler under a mounted asgi app would prevent a request from routing through the mounted application if the request path contained the path of the regular handler as a substring.

Closes #3429

Description

Closes

@peterschutt peterschutt requested review from a team as code owners April 26, 2024 09:50
@github-actions github-actions bot added area/private-api This PR involves changes to the privatized API size: small type/bug pr/internal labels Apr 26, 2024
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.27%. Comparing base (c6dd4f3) to head (8480b16).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3430   +/-   ##
=======================================
  Coverage   98.27%   98.27%           
=======================================
  Files         328      328           
  Lines       14851    14851           
  Branches     2356     2357    +1     
=======================================
  Hits        14595    14595           
  Misses        117      117           
  Partials      139      139           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Fix an issue where a regular handler under a mounted asgi app would prevent a request routing through the mounted application if the request path contained the path of the regular handler as a substring.
@peterschutt peterschutt force-pushed the 3429-fix-handler-under-mount-path branch from 53e9373 to 8480b16 Compare April 27, 2024 22:44
Copy link

sonarcloud bot commented Apr 27, 2024

Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3430

@peterschutt peterschutt merged commit edf9400 into main Apr 28, 2024
28 checks passed
@peterschutt peterschutt deleted the 3429-fix-handler-under-mount-path branch April 28, 2024 02:41
peterschutt added a commit that referenced this pull request May 1, 2024
* fix: regular handler under mounted app

Fix an issue where a regular handler under a mounted asgi app would prevent a request routing through the mounted application if the request path contained the path of the regular handler as a substring.

* fix: remove duplicate asgi handler

* fix: type-checkers

(cherry picked from commit edf9400)
peterschutt added a commit that referenced this pull request May 2, 2024
* fix: regular handler under mounted app

Fix an issue where a regular handler under a mounted asgi app would prevent a request routing through the mounted application if the request path contained the path of the regular handler as a substring.

* fix: remove duplicate asgi handler

* fix: type-checkers

(cherry picked from commit edf9400)
@Bobronium
Copy link
Contributor

Just spend some time debugging this issue and almost finished filling a bug report, but when trying to reference the line I found in sources, discovered it has already been fixed. Nice!

And thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/private-api This PR involves changes to the privatized API pr/internal size: small type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: regular handler under asgi mount path conflicts with routing to asgi app
3 participants