vrjdev opened a new pull request, #58016: URL: https://github.com/apache/spark/pull/58016
### What changes were proposed in this pull request? Adds unit tests for `FilteredObjectInputStream.resolveClass`, the SPARK-20922 allow-list guarding the launcher's local socket protocol against arbitrary deserialization. ### Why are the changes needed? This security-relevant allow-list (only `java.lang.*` and `org.apache.spark.launcher.*` classes are permitted) had zero direct test references. A silent regression here would reopen the deserialization hole it was added to close. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? New unit tests in `FilteredObjectInputStreamSuite`: round-trip allowed payloads (`java.lang.String`, `java.lang.Integer`, `LauncherProtocol.Hello`/`SetAppId`) must deserialize, while disallowed payloads (`java.util.HashMap`, `java.util.ArrayList`, `java.io.File`) must be rejected with `IllegalArgumentException`. Run locally via `build/sbt 'launcher/testOnly org.apache.spark.launcher.FilteredObjectInputStreamSuite'` - all 7 tests pass. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: an internal AI coding assistant -- 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]
