RockteMQ-AI commented on issue #4520:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/4520#issuecomment-5714025696

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase at commit 
`987b748e`.
   
   **Root Cause:** `NamesrvAddrParser.normalizeSegment()` (line 67) calls 
`ipv6.toLowerCase(Locale.ROOT)` on the entire bracketed IPv6 content, including 
the named zone identifier after `%`. Java's `Inet6Address` requires the zone 
name to match `NetworkInterface.getName()` exactly — it is case-sensitive.
   
   **Affected code path:**
   - `NamesrvAddrParser.java:67` — `normalizedHost = "[" + 
ipv6.toLowerCase(Locale.ROOT) + "]"`
   - Called by `NameserverRegistryService.java:50` (create) and `:80` (update)
   
   **Impact:** Any IPv6 link-local or scoped address with a named zone (e.g., 
`[FE80::1%ProdNIC]:9876`) will have its zone identifier silently corrupted to 
lowercase (`[fe80::1%prodnic]:9876`), potentially pointing to a nonexistent or 
wrong network interface.
   
   **Severity:** Medium — affects IPv6 deployments with named zone identifiers; 
standard IPv4 and unscoped IPv6 are unaffected.
   
   **Proposed fix:** Split the IPv6 literal at `%`, lowercase only the address 
portion, and preserve the zone identifier verbatim. Add regression tests for 
scoped IPv6 literals.
   
   An automated fix proposal will be generated. Reply `/approve` to proceed 
with PR generation.
   
   ---
   *Automated evaluation by github-manager-bot*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to