Flagsmith/flagsmith

update-traits crash when traits malformed

Open

#7,951 opened on 2026年7月6日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Python (264 forks)batch import
buggood first issue

Repository metrics

Stars
 (3,475 stars)
PR merge metrics
 (平均マージ 3d 7h) (30d で 157 merged PRs)

説明

Sentry Issue: FLAGSMITH-API-68J

TypeError: util.engine_models.identities.traits.models.TraitModel() argument after ** must be a mapping, not list
(4 additional frame(s) were not displayed)
...
  File "edge_api/identities/views.py", line 180, in update_traits
    trait = TraitModel(**request.data)

Acceptance criteria

  • update-traits data validation broadens and responds 400 when parameters are malformed, e.g. traits is given a JSON array instead of an object.

コントリビューターガイド