This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new adfd767  HADOOP-17112. S3A committers can't handle whitespace in 
paths. (#2953)
adfd767 is described below

commit adfd767225b6d65e40d3511a32dbf72649041d94
Author: Steve Loughran <[email protected]>
AuthorDate: Sun Apr 25 18:33:55 2021 +0100

    HADOOP-17112. S3A committers can't handle whitespace in paths. (#2953)
    
    Contributed by Krzysztof Adamski.
    
    (cherry picked from commit 88a550bc3a73dbbbfb35e2ef29d9c34ad059d1a8)
    
     Conflicts:
        
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/commit/ITestCommitOperations.java
---
 .../src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
 
b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
index 55ace17..1ccc9c2 100644
--- 
a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
+++ 
b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/CommitOperations.java
@@ -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;
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to