Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cguerreros opened this issue Nov 4, 2021 · 0 comments
Closed
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@cguerreros
Copy link

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"

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 4, 2021
@rstoyanchev rstoyanchev added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Nov 10, 2021
@poutsma poutsma added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 19, 2021
@poutsma poutsma added this to the 5.3.14 milestone Nov 19, 2021
@poutsma poutsma self-assigned this Nov 19, 2021
@poutsma poutsma changed the title UriUtils.extractFileExtension() does not properly handle cases following the pattern "/endpoint/.format" UriUtils::extractFileExtension does not properly handle empty file names Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

4 participants