Open Issues Need Help
View All on GitHubAI Summary: The `check_path_valid_type` function in `samcli` incorrectly allows `int(0)` while rejecting other falsy values inconsistently. Additionally, the debug logging uses `format(path)` which could lead to arbitrary code execution if `path` has a malicious `__format__` method. The proposed fix involves using `%r` formatting for safe representation and addressing a trailing space in the log message.
CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
AI Summary: The `convert_path_to_unix_path` function incorrectly returns '.' for an empty string input, instead of the expected empty string. This is due to the underlying `PureWindowsPath("").as_posix()` behavior. The proposed fix adds a simple check to return the empty string directly if the input is empty.
CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM