ListObjectVersions does not contain Storage Class info
- Lingua principale
- Java
- Stelle
- 2.6k
- Fork
- 1k
- Merge medio
- 2g 9h
- PR unite (30g)
- 51
Descrizione
### Describe the bug
`ListObjectVersionsResponse` has a list of `ObjectVersion`, which uses its own enum for storage class, `ObjectVersionStorageClass`. This enum currently has only two values: STANDARD and UNKNOWN_TO_SDK_VERSION. The result is any StorageClass other than Standard is unknown.
### Regression Issue
- [ ] Select this option if this issue appears to be a regression.
### Expected Behavior
Storage class info to be available list as it is via the CLI
### Current Behavior
Objects in storage classes other than standard show up as UNKOWN_TO_SDK_VERSION
### Reproduction Steps
```kotlin
val listing = s3Client.listObjectVersions(..) // call on a prefix with IntelligentTiering data
for (v in listing.versions()) {
println(version.storageClass().toString()) // prints null or STANDARD only
}
```
### Possible Solution
This train has probably left the station, but use the same enum as a list-objects-v2 or get-objects call
### Additional Information/Context
_No response_
### AWS Java SDK version used
2.42.21
### JDK version used
Irrelevant
### Operating System and version
Irrelevant
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando ListObjectVersionsResponse, ObjectVersion e ObjectVersionStorageClass, quindi confronta la gestione delle classi di storage con quella dei modelli list-objects-v2 o get-objects. Riproduci l'elenco con dati Intelligent-Tiering e verifica che la classe di storage restituita venga rappresentata invece di UNKNOWN_TO_SDK_VERSION.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- backend-api-design, cloud
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100