S3 client getObject() throws exception on 304 ("Not Modified")
- Lingua principale
- Java
- Stelle
- 2.6k
- Fork
- 1k
- Merge medio
- 2g 9h
- PR unite (30g)
- 51
Descrizione
When getting an object from an S3 bucket with "ifNoneMatch", an exception is thrown if the eTag matches.
ResponseInputStream response = s3Client.getObject(getObjectRequest, StreamingResponseHandler.toInputStream());
## Expected Behavior
Not throwing an exception, instead only return the status code 304 and null InputStream when eTag matches.
See https://forums.aws.amazon.com/thread.jspa?threadID=77995&tstart=0
## Your Environment
* AWS Java SDK version used: 2.0.0-preview-8
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo la chiamata a getObject mostrata nell’issue con ifNoneMatch impostato su un eTag corrispondente, quindi segui la gestione della risposta S3 per lo stato 304. Il lavoro è completato quando la chiamata restituisce lo stato 304 senza generare un’eccezione e fornisce un null InputStream.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, java
- Ambito
- api, 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