Return friendly error if input is Base64 encoded
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Inizia da modules/serialize/src/deserialize_factory.ts, quindi confronta la gestione del primo byte in deserialize_header_v1.ts e deserialize_header_v2.ts. Segui il ramo corrente di selezione della versione e verifica che l'input codificato in Base64 raggiunga un errore chiaro prima della selezione della versione di deserializzazione; conferma che i test di serializzazione pertinenti abbiano esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem:
We have some code that intends to return a friendly error if the first byte is base64 encoded:
- https://github.com/aws/aws-encryption-sdk-javascript/blob/43813f463ef6c53bd4de1963e7843b56733d1bec/modules/serialize/src/deserialize_header_v1.ts#L88-L93
- https://github.com/aws/aws-encryption-sdk-javascript/blob/43813f463ef6c53bd4de1963e7843b56733d1bec/modules/serialize/src/deserialize_header_v2.ts#L92-L96
However we can't ever get inside those statements because we first do a check at: https://github.com/aws/aws-encryption-sdk-javascript/blob/43813f463ef6c53bd4de1963e7843b56733d1bec/modules/serialize/src/deserialize_factory.ts#L74
Solution:
Move the logic checking the expected first byte in Base64 before the branch that determines which version we're deserializing.
Out of scope:
n/a
- Lingua principale
- TypeScript
- Stelle
- 260
- Fork
- 68
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws/aws-encryption-sdk-javascript
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
aws/aws-encryption-sdk-javascript#1656 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
aws/aws-encryption-sdk-javascript#1691 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
aws/aws-encryption-sdk-javascript#1665 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
aws/aws-encryption-sdk-javascript#1663 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
aws/aws-encryption-sdk-javascript#1520 · 1 commento ·
Tutte le issue di aws/aws-encryption-sdk-javascript
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
copse-dev/agent-pane#2953 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Apertabug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
calcite-components needs triage refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Esri/calcite-design-system#15203 ·