Flagsmith / Flagsmith/flagsmith

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

Open
#6,615 0 comments 0 reactions 0 assignees View on GitHub
api good first issue
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Sentry Issue: [FLAGSMITH-API-5GZ](https://flagsmith.sentry.io/issues/7223700739/?referrer=github_integration)

```
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"]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.