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

ASF GitHub Bot commented on HDFS-17834:
---------------------------------------

pjfanning opened a new pull request, #8198:
URL: https://github.com/apache/hadoop/pull/8198

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   Alternative to #8196 
   
   ### How was this patch tested?
   
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   ### AI Tooling
   
   If an AI tool was used:
   
   - [ ] The PR includes the phrase "Contains content generated by <tool>"
         where <tool> is the name of the AI tool used.
   - [ ] My use of AI contributions follows the ASF legal policy
         https://www.apache.org/legal/generative-tooling.html




> Fix invalid HTTP links for DataNodes in IPv6 environment.
> ---------------------------------------------------------
>
>                 Key: HDFS-17834
>                 URL: https://issues.apache.org/jira/browse/HDFS-17834
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.4.1
>         Environment: !image-2025-09-10-10-12-28-486.png|width=545,height=298!
>            Reporter: sunhui
>            Assignee: sunhui
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.5.0, 3.4.3
>
>         Attachments: fixwebsite_support_ipv6.diff, 
> image-2025-09-10-10-12-28-486.png
>
>
> In the HDFS NameNode Web UI 
> (http://nn-host:9870/dfshealth.html#tab-datanode), the "Http Address" column 
> for DataNodes generates completely corrupt and invalid links when the 
> DataNode's address is an IPv6 literal.
> 1. It fails to encapsulate the IPv6 address in square brackets `[]`, which is 
> required by RFC 2732. 2. More critically, it appears to **parse the IPv6 
> address incorrectly**, mistaking a part of the address (e.g., the `30` in 
> `1172:30:...`) for the port number, which completely breaks the URL. This 
> results in a malformed, unclickable link that does not point to the 
> DataNode's web interface. **Current Behavior & Evidence:** The DataNode's 
> actual address is: `[1172:30:0:0:0:0:8a34]:50010` However, the NameNode UI 
> displays the link as: `https://datanodeHostname:30` This link is **invalid** 
> and leads nowhere. The UI has: - Stripped the original port `50010`. - 
> Incorrectly extracted `30` (which is part of the IPv6 address) and used it as 
> the port. - Failed to wrap the IPv6 address, leading to incorrect parsing.



--
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