Skip to content

Commit

Permalink
fix(backend): 暂时屏蔽文件路径校验 #6331
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Aug 20, 2024
1 parent 8686feb commit 7aa2925
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dbm-ui/backend/iam_app/handlers/drf_perm/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ def instance_id_getter(self, request, view):
bk_biz_ids = set([int(path.split("/")[2]) for path in file_path_list])
return [bk_biz_ids]
except Exception:
raise PermissionDeniedError(_("文件操作路径{}不合法,请联系管理员").format(file_path_list))
logger.error(_("文件操作路径{}不合法,请联系管理员").format(file_path_list))
# TODO: 暂时屏蔽校验,一个月后放开
# raise PermissionDeniedError(_("文件操作路径{}不合法,请联系管理员").format(file_path_list))
4 changes: 2 additions & 2 deletions helm-charts/bk-dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ dependencies:
description: A Helm chart for bk-dbm
name: bk-dbm
type: application
version: 1.5.0-alpha.6
appVersion: 1.5.0-alpha.6
version: 1.5.0-alpha.7
appVersion: 1.5.0-alpha.7
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.5.0-alpha.317
appVersion: 1.5.0-alpha.321
description: A Helm chart for dbm
name: dbm
type: application
Expand Down

0 comments on commit 7aa2925

Please sign in to comment.