dongjoon-hyun opened a new pull request, #57151: URL: https://github.com/apache/spark/pull/57151
### What changes were proposed in this pull request? This PR aims to improve `NettyStreamManager` to serve only files under the registered directory. For a registered directory, `openStream` now resolves the requested path with `getCanonicalFile` and serves the file only when its canonical path stays under that directory; otherwise it returns `null`. ### Why are the changes needed? To be robust and align with `addFile`/`addJar`, which already canonicalize. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs with the newly added `NettyStreamManagerSuite`. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Fable 5 -- 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]
