[ 
https://issues.apache.org/jira/browse/HADOOP-19577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093455#comment-18093455
 ] 

arun kumar edited comment on HADOOP-19577 at 7/3/26 2:21 PM:
-------------------------------------------------------------

Hi Hadoop team,

I would like to work on this issue as my first contribution to Apache Hadoop. 
Could a committer please grant me the Contributor role for the HADOOP project 
and assign this ticket to me?

My ASF Jira username is: *arunkkumar*

I've reproduced the bug on the latest trunk and prepared a safe, targeted fix 
in {{FileSystem.checkPath(...)}} that adds a diagnostic hint when a stray 
{{//}} causes {{java.net.URI}} to drop the path's authority (see HADOOP-8087). 
The primary "Wrong FS" message is preserved for backward compatibility; the 
hint is appended only when the fingerprint (path URI has a scheme, null 
authority; FileSystem has a non-null authority) matches, avoiding false 
positives on ordinary scheme/host mismatches. Unit tests have been 
added/updated accordingly.

Once assigned, I'll open the PR and link it here.

Thanks!


was (Author: JIRAUSER313634):
Hello [~ganeshas] I would like to work on this issue. Could you please grant me 
the Contributor role for the HADOOP project and assign this ticket to me? My 
ASF Jira username is: arunkkumar I have reproduced the bug on the latest trunk 
and prepared a safe, targeted fix in FileSystem.checkPath(...) that adds a 
helpful diagnostic hint when a stray '//' drops the path's authority. I have 
also updated the unit tests and am ready to submit a Pull Request. Thanks!

> Improve error message when the path contains double slash without a preceding 
> authority or bucket name
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-19577
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19577
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ganesha S
>            Priority: Minor
>
> Currently, we display the following error message when a path contains a 
> double slash without a preceding authority or bucket name. 
> {code:java}
> java.lang.IllegalArgumentException: Wrong FS: s3://test_file.json.gz, 
> expected: s3://test_bucket/ at 
> org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:824) at 
> org.apache.hadoop.fs.FileSystem.makeQualified(FileSystem.java:683){code}
> The path used in the above case is s3://test_bucket{*}//{*}test_file.json.gz. 
> It is expected that Hadoop will treat the path name preceding the double 
> slash (//) as a bucket or authority because, according to HADOOP-8087, a 
> relative reference that begins with two slash characters is termed a 
> network-path reference.
> Created this Jira to evaluate printing the full path in the error message or 
> to revise the error message when the path contains a double slash without a 
> preceding authority or bucket name for easier debugging. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to