Aias00 opened a new issue, #899: URL: https://github.com/apache/rocketmq-dashboard/issues/899
### Problem The Cluster page assumes Broker, NameServer, and Proxy addresses are always non-null strings. Several search filters and sorters call `toLowerCase()` or `localeCompare()` directly on `addr`: ```ts b.addr.toLowerCase().includes(...) ns.addr.toLowerCase().includes(...) p.addr.toLowerCase().includes(...) a.addr.localeCompare(b.addr) ``` If a provider/API response contains an incomplete row with a missing address, the page can crash during filtering or table sorting. ### Impact Cluster management is part of the Studio control-plane baseline. A single malformed infrastructure row should not break the whole Broker/NameServer/Proxy view. ### Expected behavior The Cluster page should safely normalize nullable text fields for search/sort/rendering and continue rendering the rest of the cluster data. ### Code evidence - `web/src/pages/cluster/index.tsx` ### Suggested fix Add small safe text helpers for filtering/sorting/rendering and cover malformed address rows in `ClusterPage.test.tsx`. -- 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]
