Flagsmith/flagsmith

Insufficient validation in ` /api/v1/projects/{project_pk}/features/{feature_pk}/mv-options/`

Open

#6,615 建立於 2026年1月28日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Python (264 fork)batch import
apigood first issue

倉庫指標

Star
 (3,475 star)
PR 合併指標
 (平均合併 3天 7小時) (30 天內合併 157 個 PR)

描述

Sentry Issue: FLAGSMITH-API-5GZ

KeyError: 'default_percentage_allocation'
(9 additional frame(s) were not displayed)
...
  File "features/multivariate/views.py", line 89, in create
    return super().create(request, *args, **kwargs)
  File "features/multivariate/serializers.py", line 68, in validate
    total_sibling_percentage_allocation + attrs["default_percentage_allocation"]

貢獻者指南