Skip to content

Disable Lowercase HTTP Method Firewall Test #19541

Closed

Description

@jzheaux

Since Spring Framework's HttpMethod#valueOf now performs a case-insensitive
lookup (spring-framework#36518), HttpMethod.valueOf("get") resolves to
HttpMethod.GET instead of a distinct non-canonical value.

As a result, StrictServerWebExchangeFirewallTests#getFirewalledExchangeWhenLowercaseGetThenThrowsServerExchangeRejectedException
no longer holds: a lowercase get request is no longer distinguishable as
non-canonical case by the time it reaches the firewall, so it is processed
as an ordinary GET instead of being rejected.

This test has been disabled since the behavior it asserts is no longer
possible upstream. The team should confirm whether to remove it outright, or
repurpose it to document that a customized ServerExchangeRejectedHandler
is no longer invoked for this case.

Related to #19528.

Activity

  1. added this to the 7.2.0-M1 milestone on Aug 13, 2026
  2. added
    in: web
    type: task
    on Aug 13, 2026
  3. self-assigned this
    on Aug 13, 2026
  4. added a commit that references this issue on Aug 13, 2026
    8876c30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions