Skip to content

Unexpected path element removal when resolving versioned resources #36698

@bclozel

Description

@bclozel

When configuring resource resolution with versioning support (especially custom content versioning implementations), it appears that in rare cases there can be a collision in the URL path like so: "/static/images-c0ff33/image-c0ff33.png". The current implementation fails because the resolver attempts to locate "/static/images/image.png" instead of "/static/images-c0ff33/image.png"

This situation is quite rare, but content versioning should only consider the last instance of the version string because the hash is calculated with the resource content.

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions