RockteMQ-AI commented on issue #1419:
URL: 
https://github.com/apache/rocketmq-clients/issues/1419#issuecomment-6306992626

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase.
   
   **Root Cause:** `Endpoints::from_url` in `rust/src/model/common.rs` does not 
strip `http://` or `https://` prefixes before parsing. When a URL like 
`http://localhost:8080` is passed, the parser attempts to split by `:` and 
treats `http` as the hostname, causing connection failures.
   
   **Impact:** Rust client cannot connect when access URLs include protocol 
prefixes, breaking compatibility with standard URL formats and the Java client 
behavior.
   
   **Severity:** Medium — affects usability and consistency with other language 
clients.
   
   **Suggested Fix:** Strip `http://` and `https://` prefixes in `from_url` 
before parsing, matching the Java client's behavior in `Endpoints.java`.
   
   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