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

Always return a 415 if the content type is mismatching, also if its value is empty #2657

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

komape
Copy link
Contributor

@komape komape commented Oct 16, 2024

Motivation:

Solves the bug described in #2656. Instead of returning a 400 in case of a missing content type, it now returns a 415. For further details, see the issue.

It does not add the return of an Accept header in case of a mismatched content type. But I would not see this as a bug but rather as an enhancement which needs its own issue.

Currently waiting for an account with the Eclipse Foundation but they currently experience issues with user sign up. I will sign the ECA as soon as possible.

EDIT: Signed the ECA.

@vietj vietj added this to the 5.0.0 milestone Oct 16, 2024
Copy link
Contributor

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @komape

@tsegismont tsegismont merged commit 7ffc640 into vert-x3:master Oct 17, 2024
7 checks passed
@tsegismont
Copy link
Contributor

@komape could you take care of backporting to 4.x? Thanks

@komape
Copy link
Contributor Author

komape commented Oct 17, 2024

@tsegismont Thanks for merging and the quick response!

could you take care of backporting to 4.x?

How do I this? What exactly do you mean?

@tsegismont
Copy link
Contributor

tsegismont commented Oct 17, 2024

I mean creating another PR for branch 4.x with the same changes.

@komape
Copy link
Contributor Author

komape commented Oct 18, 2024

@tsegismont Now I understand. Opened the PR #2659.

code-brazier pushed a commit to code-brazier/vertx-web that referenced this pull request Dec 23, 2024
…alue is empty (vert-x3#2657)

* Always return a 415 if the content type is mismatching, also if its value isempty

* Update RouterTest to expect 415 for missing content type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants