Gabriel39 commented on code in PR #71089:
URL: https://github.com/apache/doris/pull/71089#discussion_r4748405816
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/plugin/PluginDrivenExternalCatalog.java:
##########
@@ -423,7 +424,9 @@ private void checkEndpointsAgainstSsrf(Map<String, String>
candidate, Map<String
}
// A value may list several comma-separated endpoints (e.g. HA
hive.metastore.uris).
for (String endpoint : rawValue.split(",")) {
- HostAndPort hostAndPort = parseEndpoint(endpoint.trim());
+ // A bare host can still name a concrete destination when the
client supplies its port.
+ HostAndPort hostAndPort = parseEndpoint(endpoint.trim(),
Review Comment:
Fixed in eab6f1f7e2. Scheme-less endpoints with a declared default port now
use URL authority parsing and OkHttp hostname normalization before the policy
probe, preserving explicit ports. A scheme inside a path/query no longer
selects the schemed-endpoint branch.
Both DLF aliases are covered through the actual Hive and native Iceberg
CREATE/ALTER hooks, including userinfo, query/fragment suffixes, encoded hosts,
public destinations, disabled checker behavior and unchanged properties after
rejected ALTER. The shipped SDK confirms the encoded-host destination against a
local HTTPS fixture.
The baseline gate had 12 failures in 73 tests; the candidate passes all 73.
Related verification: 265 classes / 3598 tests, zero failures/errors, 11
existing disabled tests; FE Checkstyle passed. The optional installed checker
net-hook and live cloud/KDC were not exercised.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]