aws / aws/aws-sdk-cpp

UnauthorizedOperation is not supported yet in error handling

Aperta
#1,972 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug needs-reproduction p2
Lingua principale
C++
Stelle
2.2k
Fork
1.2k
Merge medio
4g 11h
PR unite (30g)
13

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dalla chiamata a GetExceptionName e dall'area centrale di gestione degli errori menzionata nell'issue, quindi confronta il modo in cui UnauthorizedOperation viene restituito dalle operazioni EBS, EC2 e RDS. Il lavoro è completato quando UnauthorizedOperation viene riconosciuto senza il messaggio parse-error e può essere gestito in modo coerente ovunque l'issue indichi che può verificarsi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, cpp
Ambito
cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.