Tags: bentoml/BentoML
Tags
fix: sanitize filename with path separators in FileSchema.decode (#5533) * fix: sanitize filename with path separators in FileSchema.decode Fixes #5532 When users upload files with filenames containing path separators (e.g., "payslips/red/genuine/uuid.pdf"), the filename was passed directly to tempfile.NamedTemporaryFile() as a suffix, causing a FileNotFoundError because the temp file system tried to create nested directories that don't exist. This change uses os.path.basename() to extract only the filename from the path, preventing the error while preserving the file extension for proper handling. * ci: auto fixes from pre-commit.ci For more information, see https://pre-commit.ci --------- Co-authored-by: Anri Lombard <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ci: pre-commit autoupdate [skip ci] (#5485) updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.3](astral-sh/ruff-pre-commit@v0.12.11...v0.13.3) - [github.com/bufbuild/buf: v1.57.0 → v1.57.2](bufbuild/buf@v1.57.0...v1.57.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
fix: handle compatibility with click 8.3+ (#5480) * fix: handle compatibility with click 8.3+ Signed-off-by: Frost Ming <[email protected]> * fix: ensure required environment variables are set for service deployment Signed-off-by: Frost Ming <[email protected]> --------- Signed-off-by: Frost Ming <[email protected]>
feat: enforce requirement for at least one dependency attribute in De… …pendency class (#5472) * feat: enforce requirement for at least one dependency attribute in Dependency class Signed-off-by: Frost Ming <[email protected]> * fix: simplify argument parsing in set_build_args function Signed-off-by: Frost Ming <[email protected]> --------- Signed-off-by: Frost Ming <[email protected]>
PreviousNext