HADOOP-17112. S3A committers can't handle whitespace in paths. (#2953)

Contributed by Krzysztof Adamski.

(cherry picked from commit 88a550bc3a)

 Conflicts:
	hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/commit/ITestCommitOperations.java
This commit is contained in:
Steve Loughran 2021-04-25 18:33:55 +01:00 committed by Akira Ajisaka
parent 551f8d3ddc
commit adfd767225
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ public class CommitOperations {
if (!localFile.isFile()) {
throw new FileNotFoundException("Not a file: " + localFile);
}
String destURI = destPath.toString();
String destURI = destPath.toUri().toString();
String destKey = fs.pathToKey(destPath);
String uploadId = null;