Deposit, withdraw and delete ignore economy failures
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
既存の失敗処理とテストパターンを確認するため、Transaction.process と TransactionTest を読み、その後 deposit、withdraw、DeleteCommand の実装を探してください。store の残高が変わる前に各 economy の応答がどのように処理されるかを確認し、3つすべてのコマンドについて、economy が拒否する場合のテストを追加してください。各トランザクションが拒否されたときに store が変更されず、TRANSACTION_FAILED が報告されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
/shop deposit, /shop withdraw and /shop delete ignore the result of their economy calls. If the economy plugin rejects the change, the store's balance changes anyway and the player is told it worked.
Transaction.process already handles this correctly by moving the player's money first and stopping if that fails.
Reproduced with an economy that rejects every change:
/shop deposit 100added 100 to the store without taking anything from the player, and reported success./shop withdraw 40removed 40 from the store without paying the player, and reported success.
DeleteCommand has the same pattern: it clears the balance and removes the store whatever depositPlayer returns.
Scope
- Check
EconomyResponse.transactionSuccess()before changing the store, in all three commands. - Send
TRANSACTION_FAILEDwhen the economy rejects the change, and leave the store as it was.
Done when
- A rejected deposit, withdrawal or delete payout changes nothing and tells the player it failed.
- Tests cover each command with a rejecting economy, using the existing approach in
TransactionTest.
- 主要言語
- Java
- スター
- 1
- フォーク
- 0
- 平均マージ
- 2時間 35分
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
BrendonButler/Shops のほかの issue
-
dependencies enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
BrendonButler/Shops#79 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BrendonButler/Shops#70 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
BrendonButler/Shops#69 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
BrendonButler/Shops#68 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
BrendonButler/Shops#67 ·
メンテナーはふだん 1 日以内に返信
BrendonButler/Shops の issue をすべて見る
似ている issue
-
jules
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-learning-exchange/myplanet#18568 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
quarkiverse/quarkus-ironjacamar#264 · コメント 7 件 ·
-
[Bug]: Login shows only "Log-in failed" when Commons answers the login request with an API errorオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
commons-app/apps-android-commons#7295 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
hibernate/hibernate-reactive#4485 ·
メンテナーはふだん 1 日以内に返信