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

Middlewares are executed altough url doesnt exist in openapi spec #1913

Open
jasonlazo opened this issue Apr 18, 2024 · 0 comments
Open

Middlewares are executed altough url doesnt exist in openapi spec #1913

jasonlazo opened this issue Apr 18, 2024 · 0 comments

Comments

@jasonlazo
Copy link

Description

I am using Connexion with flask, i have some custom ASGI Middlewares and hooks in flask (methods decorated with before_request). both are executed altought url path doesnt exist.

Expected behaviour

I expect this code shouldnt be executed and the 404 should be returned cause connexion framework has a routingmiddleware that is called previously.

Actual behaviour

The middlewares and hooks are called, and Working outside of operation context error is raised cause context and request connexion object are not accesible

Steps to reproduce

Download this example project , and follow the steps on readme to replicate the errors.

@jasonlazo jasonlazo changed the title Middlewares are executed altough url doesnt exist in openapi spec #1911 Middlewares are executed altough url doesnt exist in openapi spec Apr 18, 2024
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

No branches or pull requests

1 participant