Skip to content

ApplicationContextRequestMatcher can use the wrong ApplicationContext #18012

@philwebb

Description

@philwebb

Discovered during #17912

ApplicationContextRequestMatcher uses WebApplicationContextUtils.getRequiredWebApplicationContext(request.getServletContext()) to obtain the application context and caches the supplier. If there is a management server running on a different port, it's possible for the wrong context to be used depending on who makes the first request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions