ramitg254 commented on PR #471: URL: https://github.com/apache/tez/pull/471#issuecomment-4133891386
sure @abstractdog the before and after behaviour looks something like this: let's say we shouldn't allow to overwrite a file by providing the corresponding fileName since it is used by fileNames mostly using dagId which will be different for different dags and since this method is public and can be exploitable for file corruption. before: <img width="1727" height="170" alt="Screenshot 2026-03-26 at 4 40 36 PM" src="https://github.com/user-attachments/assets/4a2b43c5-b2cd-41c3-b938-ad82119c3ad5" /> after: <img width="1717" height="417" alt="Screenshot 2026-03-26 at 4 42 05 PM" src="https://github.com/user-attachments/assets/a158fb87-9c42-4990-8e74-36e374e35fcc" /> similarly the other preventive check ensures the output directory should exist: before: shows ls and success of command even after directory doesn't exist: <img width="1725" height="352" alt="Screenshot 2026-03-26 at 5 02 51 PM" src="https://github.com/user-attachments/assets/b5b575fa-cd3c-40a2-a170-f412636170d7" /> after: shows ls and exception since directory doesn't exist: <img width="1725" height="714" alt="Screenshot 2026-03-26 at 5 05 16 PM" src="https://github.com/user-attachments/assets/13a38abd-b65d-4203-bd72-ca424b8f48bb" /> in the similar fashion other preventive checks works before opening stream for file writes as well -- 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]
