[BUG] Buffered reader desynchronization causes AUTHENTICATE hangs and IDLE/DONE handling
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- backend, networking
Direzione di ricerca
Start at the IMAP server's buffered reader and the AUTHENTICATE and IDLE command handlers; the issue does not name their files, so locate those entry points first. Trace how consecutive lines are read when commands are pipelined, then run or add focused reproductions for AUTHENTICATE followed by LIST and IDLE followed by DONE. Done means continuation input is consumed without blocking or swallowing later commands, and DONE exits IDLE reliably.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Steps to Reproduce
- Start the IMAP server.
- Connect using a real IMAP client (e.g., Thunderbird, Apple Mail) or a custom TCP client.
- Send pipelined or fast consecutive commands:
Case 1: AUTHENTICATE hang
A1 AUTHENTICATE PLAIN\r\n
\r\n
Send both lines quickly (in the same TCP packet or without delay).
-
Observe that the server does not proceed with authentication and appears to block or timeout.
-
Case 2: Command corruption
A1 AUTHENTICATE PLAIN\r\n
\r\n
A2 LIST "" "*"\r\n
- Observe that:
- Either authentication fails unexpectedly, or
- The next command (LIST) is partially consumed or corrupted.
- Case 3: IDLE DONE not detected
A2 IDLE\r\n
DONE\r\n
- Send both lines quickly.
- Observe that:
- Server does not exit IDLE mode properly
- Session appears stuck
Expected Behavior
- The server should correctly process all client input regardless of TCP packet boundaries or pipelining.
- AUTHENTICATE should:
- Immediately read the continuation input () without blocking - Commands sent after AUTHENTICATE should remain intact and be processed correctly
- IDLE should:
- Detect DONE reliably and exit IDLE mode immediately
Actual Behavior
- AUTHENTICATE may:
- Block indefinitely waiting for input that has already been sent - AUTHENTICATE may:
- Over-read and consume bytes belonging to the next command - Subsequent commands may:
- Be partially missing or malformed - IDLE may:
- Fail to detect DONE and remain stuck
Relevant Logs / Screenshots
No response
- Lingua principale
- Go
- Stelle
- 12
- Fork
- 13
- Merge medio
- 2g 3h
- PR unite (30g)
- 8
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi 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 OpenGovMail/raven
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenGovMail/raven#338 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] UNSELECT accepts extra arguments instead of returning BADForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenGovMail/raven#322 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] NAMESPACE accepts extra arguments instead of returning BADForse già presa @tharinfernando l’ha presa 1 giorno fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#321 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#320 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#319 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OpenGovMail/raven
Issue simili
-
Add rebaseWhen: conflicted to major Go module Renovate updatesForse già presa @WadekarPrashant l’ha presa oggi. Apertaenhancement feature good first issue ready-for-triage triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
konflux-ci/build-definitions#3943 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
-
Typos Check fails when the typos binary download failsForse già presa @akshat-kumar-singhal l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
defect
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nats-io/nats-server#8966 ·
I maintainer di solito rispondono entro 1 giorno
-
cmd/fix, x/tools/go/analysis/passes/modernize: mapsloop moves comments out of the range operandForse già presa @muratmirgun l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno