Kaynağa Gözat

fix: validate imported_version type in AppDslService (#12135)

Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/0.15.0
-LAN- 10 ay önce
ebeveyn
işleme
e765d8e69e
No account linked to committer's email address
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3
    0
      api/services/app_dsl_service.py

+ 3
- 0
api/services/app_dsl_service.py Dosyayı Görüntüle

@@ -176,6 +176,9 @@ class AppDslService:
data["kind"] = "app"

imported_version = data.get("version", "0.1.0")
# check if imported_version is a float-like string
if not isinstance(imported_version, str):
raise ValueError(f"Invalid version type, expected str, got {type(imported_version)}")
status = _check_version_compatibility(imported_version)

# Extract app data

Loading…
İptal
Kaydet