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

Endpoint with int pathvariable returns 403 even if security is not enabled #10680

Open
abondar24 opened this issue Apr 3, 2024 · 1 comment

Comments

@abondar24
Copy link

Expected Behavior

Endpoint returns 200

Actual Behaviour

Getting 403 if int path param is below 10.

Steps To Reproduce

  1. Create an endpoint with @get("/{limit}")
  2. Call it with value between 1 and 9
  3. you will get 403
  4. add swagger ui config like below

micronaut.router.static-resources.swagger.paths=classpath:META-INF/swagger
micronaut.router.static-resources.swagger-ui.mapping=/swagger-ui/**
micronaut.router.static-resources.swagger-ui.paths=classpath:META-INF/swagger/views/swagger-ui
micronaut.router.static-resources.swagger.mapping=/swagger/**

Environment Information

No response

Example Application

https://github.com/abondar24/TelegramBots/tree/master/Webhook/ChatAnalyzerBot

Version

4.3.5

@abondar24
Copy link
Author

root case is here: micronaut.router.static-resources.swagger.mapping=/swagger
when I replace wirth / limit works, but swagger can't load api doc,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants