Skip to content

Honor HttpMethod for reactive additional endpoint paths#49864

Open
dlwldnjs1009 wants to merge 2 commits intospring-projects:mainfrom
dlwldnjs1009:endpointrequest-additionalpaths-httpmethod
Open

Honor HttpMethod for reactive additional endpoint paths#49864
dlwldnjs1009 wants to merge 2 commits intospring-projects:mainfrom
dlwldnjs1009:endpointrequest-additionalpaths-httpmethod

Conversation

@dlwldnjs1009
Copy link
Copy Markdown
Contributor

Reactive EndpointRequest.toAdditionalPaths(...).withHttpMethod(...) stores the
configured HttpMethod but does not pass it to the underlying matcher. As a
result, additional endpoint paths match regardless of the configured request
method.

The servlet variant passes the configured method through when creating the
matcher for additional paths. This change makes the reactive variant do the
same and adds a regression test to verify that only matching methods are
accepted.

Testing:

  • JAVA_HOME=/Users/jiwon/Library/Java/JavaVirtualMachines/openjdk-25.0.2/Contents/Home ./gradlew :module:spring-boot-security:test --tests 'org.springframework.boot.security.autoconfigure.actuate.web.reactive.EndpointRequestTests'

Reactive EndpointRequest.toAdditionalPaths(...).withHttpMethod(...)
stores the configured HttpMethod but does not pass it to the
underlying matcher. As a result, additional endpoint paths match
regardless of the configured request method.

Update the reactive matcher to pass the configured method through
and add a regression test to verify that only matching methods are
accepted.

Signed-off-by: LeeJiWon <dlwldnjs1009@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 2, 2026
Signed-off-by: LeeJiWon <dlwldnjs1009@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants