Hyukjin Kwon created SPARK-61472:
------------------------------------
Summary: Parse the host and port of a Spark Connect URL as urllib
does, and raise SparkConnectException for a too long user_agent
Key: SPARK-61472
URL: https://issues.apache.org/jira/browse/SPARK-61472
Project: Spark
Issue Type: Bug
Components: Connect
Affects Versions: connect-rust-4.3.0
Reporter: Hyukjin Kwon
Follow-up of SPARK-61389. The authority of sc:// URLs is split at its last
colon, its user info is not stripped, and a bracketed host is not checked, so
sc://a:1:2 and sc://localhost:15012:1/ are accepted (PySpark: ValueError),
sc://user@localhost:15012/ picks TLS and fails (PySpark connects), and
sc://[localhost]:15002 is accepted. The port error of the form without a slash
quotes the token. A user_agent longer than 2048 raises PySparkRuntimeError,
where PySpark raises SparkConnectException.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]