You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/10/10 15:21:00 UTC
[jira] [Commented] (HADOOP-18928) S3AFileSystem URL encodes twice where Path has trailing /
[ https://issues.apache.org/jira/browse/HADOOP-18928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17773728#comment-17773728 ]
ASF GitHub Bot commented on HADOOP-18928:
-----------------------------------------
szlta opened a new pull request, #6167:
URL: https://github.com/apache/hadoop/pull/6167
As per the comment at https://github.com/apache/hadoop/pull/1646#issuecomment-1754221384 ...
due to [HADOOP-15430](https://issues.apache.org/jira/browse/HADOOP-15430) a Path
`s3://my.bucket/my folder/`
becomes
`s3://my.bucket/my%20folder`
which upon HTTP request creation becomes
`"GET
...&prefix=my%2520folder
which is a wrong path.`
This PR re-adds the missing step of converting the modified String back to URI before creating a Path out of it.
cc: @steveloughran @bgaborg @whenamanlies
> S3AFileSystem URL encodes twice where Path has trailing /
> ---------------------------------------------------------
>
> Key: HADOOP-18928
> URL: https://issues.apache.org/jira/browse/HADOOP-18928
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Ádám Szita
> Priority: Major
>
> As per the comment at [https://github.com/apache/hadoop/pull/1646#issuecomment-1754221384] ...
> due to HADOOP-15430 a Path
> {code:java}
> s3://my.bucket/my folder/{code}
> becomes
> {code:java}
> s3://my.bucket/my%20folder{code}
> which upon HTTP request creation becomes
> {code:java}
> "GET
> ...&prefix=my%2520folder{code}
> which is a wrong path.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org