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

Regression in micronaut, http call is returning 415 for missing http method instead of 405 #11468

Open
munishchouhan opened this issue Dec 24, 2024 · 0 comments
Assignees

Comments

@munishchouhan
Copy link

Expected Behavior

the problem arises when the server declares an endpoint GET /foo and the client makes a request POST /foo using application/x-www-form-urlencoded as media type. It returns error 415 instead of 405 Method not found.

This was not the case in MN 3

Actual Behaviour

It should return 405

Steps To Reproduce

Sample application for this:
https://github.com/munishchouhan/MediaTypeMismatch

Environment Information

os: Mac OS
java: 21

Example Application

https://github.com/munishchouhan/MediaTypeMismatch

Version

4.7.3

@munishchouhan munishchouhan changed the title Regression in micronaut, http call is returing 415 when that http method is not present instead of 405 Regression in micronaut, http call is returing 415 for missing http method instead of 405 Dec 24, 2024
@munishchouhan munishchouhan changed the title Regression in micronaut, http call is returing 415 for missing http method instead of 405 Regression in micronaut, http call is returning 415 for missing http method instead of 405 Dec 24, 2024
@graemerocher graemerocher self-assigned this Jan 20, 2025
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

2 participants