UnauthorizedOperation is not supported yet in error handling
- 主要言語
- C++
- スター
- 2.2k
- フォーク
- 1.2k
- 平均マージ
- 4日 11時間
- マージ済み PR(30日)
- 13
説明
### Describe the bug
If you block a region via AWS Control Tower, any operation (EBS, EC2, RDS) will return UnauthorizedOperation error.
This error can not be handled in a special way. Thats not good, but not a bug yet.
If you try to use `GetExceptionName` on the error, you get
` Unable to parse ExceptionName: UnauthorizedOperation`
as a result. And thats wrong.
```
// ...
const auto error = outcome.GetError();
// if(error.GetErrorType() == Aws::RDS::RDSErrors::UNAUTHORIZED_OPERATION) // -> not possible, since error does not exist
// {}
error.GetExceptionName() // -> returns "Unable to parse ExceptionName: UnauthorizedOperation"
```
### Expected Behavior
UnauthorizedOperation should be handled in all places where it can happen (i.e "core"?)
### Current Behavior
see "Describe the bug"
### Reproduction Steps
see "Describe the bug"
### Possible Solution
see "Describe the bug"
### Additional Information/Context
_No response_
### AWS CPP SDK version used
1.9.285
### Compiler and Version used
VS2022
### Operating System and version
Windows 11
コントリビューションガイド
調査の方向性
まず、issueで言及されているGetExceptionName呼び出しとエラー処理の中核部分から始め、次にEBS、EC2、RDSの各操作がUnauthorizedOperationをどのように返すかを比較します。完了の条件は、UnauthorizedOperationがparse-errorメッセージなしで認識され、issueで発生し得るとされているすべての箇所で一貫して処理できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, cpp
- 領域
- cloud
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100