[bug]: PATCH can give a work item the same external_id and external_source as another one
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
The public API checks for a duplicate external id on PATCH only when external_id is in the body and differs from the stored one (apps/api/plane/api/views/issue.py). Changing only external_source, or sending an external_id equal to the stored one together with a new source, skips the check, so two work items end up with the same pair. After that, looking the item up by external_id and external_source (the list filter, and the upsert in PUT) raises MultipleObjectsReturned and returns a 500. POST checks the full pair and answers with a 409.
The cycle, module and state PATCH endpoints of the public API have the same check.
Steps to reproduce
- Create work item A with
external_id"1" andexternal_source"jira", and work item B withexternal_id"1" andexternal_source"github". PATCHB with{"external_source": "jira"}.- The response is a 200 and both items now have ("1", "jira"); expected a 409.
Environment
Production
Browser
None
Edition
Community
Version
v1.5.0 (also on preview at 723bb178f)
- 主要言語
- TypeScript
- スター
- 63k
- フォーク
- 6.5k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
makeplane/plane のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
[bug]: Comment external_id is deduplicated per project instead of per work item対応中かも @MishraTanishq619 が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
makeplane/plane#10195 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votes対応中かも @ghazy2001 が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
makeplane/plane#10111 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
makeplane/plane#10082 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
makeplane/plane の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
frontend testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vendrabuck/HERD#1588 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue priority: low
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
art-audio
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100