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

ContentDisposition::parse does not support Windows paths #30111

Closed
xg578962913 opened this issue Mar 13, 2023 · 0 comments
Closed

ContentDisposition::parse does not support Windows paths #30111

xg578962913 opened this issue Mar 13, 2023 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: regression A bug that is also a regression
Milestone

Comments

@xg578962913
Copy link

xg578962913 commented Mar 13, 2023

use Spring6, the browser is Edge's IE mode
In the past, using IE browser will get the full path of the file, while other browsers will get the file name
When I use Spring6 and IE Mode of Edge to upload a file, the obtained file name does not contain the path separator
like this:
The correct path is D:\images\01\1.png
But now I got the wrong file path: D:images011.png
image
The separator in the path disappears and the reserved ":"

In Spring 5:
image

It seems to be related to #28837
image
image

The ContentDisposition.parse method returned an incorrect result

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 13, 2023
@sbrannen sbrannen added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Mar 13, 2023
@poutsma poutsma self-assigned this Mar 14, 2023
@poutsma poutsma added this to the 6.0.7 milestone Mar 14, 2023
@poutsma poutsma added type: regression A bug that is also a regression and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Mar 14, 2023
@poutsma poutsma changed the title When using MultiPartFile to upload a file, the separator of the file path disappears(Edge IE Mode and Spring6) ContentDisposition::parse does not support Windows paths Mar 14, 2023
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: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

4 participants