Skip to content

UriUtils::extractFileExtension does not properly handle empty file names #27639

@cguerreros

Description

@cguerreros

UriUtils.extractFileExtension() returns null when the url follow this pattern "/abc/.format" instead of format. Where format could be any allowed format: .xml, .json, etc..

UriUtils.extractFileExtension("/xxx/.json"); // => "null"

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions