-
Bug
-
Resolution: Done
-
Major
-
2.0.16.Final
-
None
tmpFile = Files.createTempFile("foo.", ".upload").toFile() file.transferTo(tmpFile)
io.undertow.server.handlers.form.FormData, from line 255
public void write(Path target) throws IOException { if (file != null) { try { Files.move(file, target); } catch (IOException e) { Files.copy(getInputStream(), target); } } else { Files.copy(getInputStream(), target); } }
Both Files.move & Files.copy throw FileAlreadyExistsException if the target file exists but cannot be replaced because the REPLACE_EXISTING option is not specified.
- is duplicated by
-
UNDERTOW-1633 Spring StandardMultipartFile.transferTo java.nio.file.FileAlreadyExistsException
- Resolved
- is incorporated by
-
WFCORE-5425 Upgrade Undertow from 2.2.6.Final to 2.2.8.Final
- Closed