Concurrent Project creation allows overlapping Data Source paths
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
調査の方向性
The bug is in the POST handler for /api/plugins/netbox-scripts/projects/, where data path overlap is validated before the Project is saved. Start by finding that validation and the create path, then check how it runs inside a transaction. Reproduce with two concurrent requests using the steps in the issue. Done means concurrent creation of overlapping Projects on one Data Source is rejected, and the existing edit validation still passes.
索引モデルが issue の本文から書いたものです。
説明
Plugin Version
v0.1.0
NetBox Version
v4.7.6
Python Version
3.12
Steps to Reproduce
- Create and synchronize a Data Source containing the directory
automation/netbox. - From separate clients, concurrently send two POST requests to
/api/plugins/netbox-scripts/projects/to create Data Source-backed Projects on the same Data Source, using distinct names and keys and the following data paths:automationautomation/netbox
- Check the resulting Projects.
Expected Behavior
One request succeeds and the other is rejected with a validation error. Projects on the same Data Source must not have overlapping directories.
Observed Behavior
If both requests validate before either transaction commits, both Projects can be created despite their overlapping directories.
Subsequent attempts to edit either Project fail validation because of the overlapping data paths.
The race condition was reproduced using separate database sessions on the development branch for #33.
- 主要言語
- Python
- スター
- 9
- フォーク
- 0
- 平均マージ
- 18時間 59分
- マージ済み PR(30日)
- 93
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
netbox-community/netbox-scripts#281 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
netbox-community/netbox-scripts#244 ·
メンテナーはふだん 1 日以内に返信
-
Correct the documentation of a Project's current revision対応中かも @pheus が今日担当しました。 オープンapp: scripts Bucket: KTLO status: accepted type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
netbox-community/netbox-scripts#233 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts complexity: medium status: backlog type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
netbox-community/netbox-scripts#229 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts status: backlog type: housekeeping
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
netbox-community/netbox-scripts#228 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bad-antics/lateralus-lang#1623 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
fossguild/thelifesnake#82 ·
メンテナーはふだん 1 日以内に返信
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pietbarber/Manage2Soar#1189 ·
メンテナーはふだん 1 日以内に返信
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinates対応中かも @dtgaebe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sandialabs/WecOptTool#467 ·