Skip to content

Warn against unsafe static resource locations in MVC and WebFlux #36692

Closed

Description

@bclozel

We already perform resource location checks in ResourceHandlerUtils, we should ensure that we log a WARN message if the application chooses a well-known unsafe location like "classpath:" for serving static resources.

Activity

  1. added this to the 7.0.8 milestone on Apr 23, 2026
  2. self-assigned this
    on Apr 23, 2026
  3. added
    in: webIssues in web modules (web, webmvc, webflux, websocket)
    for: backport-to-7.0.xMarks an issue as a candidate for backport to 7.0.x
    on Apr 23, 2026
  4. changed the title [-]Warn against invalid static resource locations in MVC and WebFlux[/-] [+]Warn against unsafe static resource locations in MVC and WebFlux[/+] on Apr 23, 2026
  5. added
    status: backportedAn issue that has been backported to maintenance branches
    and removed
    for: backport-to-7.0.xMarks an issue as a candidate for backport to 7.0.x
    on Apr 23, 2026
  6. added a commit that references this issue on Apr 23, 2026
    0725bf4
  7. bclozel commented on May 5, 2026

    @bclozel
    MemberAuthor

    Reopening since the root Servlet context is a valid location.

  8. reopened this on May 5, 2026
  9. added a commit that references this issue on May 5, 2026
    628261d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions