-
- Downloads
Fix bugs in Event Stream unmarshalling (#736)
* Fix bugs in Event Stream unmarshalling
- S3 Select's `Cont` event doesn't come across with a `:content-type`
header, but the unmarshaller was expecting this header.
- The unmarshaller attempted to parse events that were modeled as empty
structs, but S3 sends an empty payload for empty structs rather than
an empty XML payload conforming to restXml.
- The event stream `Receiver` was returning that there were no more events
even when it had some remaining events in its buffer.
* Update changelogs
* Incorporate feedback
* Split `smithy_http::event_stream` into multiple modules
* Add another test case to Receiver
* Fix CI
Co-authored-by:
Russell Cohen <rcoh@amazon.com>
Showing
- CHANGELOG.md 2 additions, 0 deletionsCHANGELOG.md
- aws/SDK_CHANGELOG.md 2 additions, 0 deletionsaws/SDK_CHANGELOG.md
- aws/sdk/integration-tests/s3/tests/select-object-content.rs 1 addition, 0 deletionsaws/sdk/integration-tests/s3/tests/select-object-content.rs
- codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/CargoDependency.kt 1 addition, 0 deletions...re/amazon/smithy/rust/codegen/rustlang/CargoDependency.kt
- codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt 1 addition, 1 deletion...oftware/amazon/smithy/rust/codegen/rustlang/RustWriter.kt
- codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/parse/EventStreamUnmarshallerGenerator.kt 51 additions, 28 deletions...mithy/protocols/parse/EventStreamUnmarshallerGenerator.kt
- rust-runtime/smithy-eventstream/src/smithy.rs 46 additions, 7 deletionsrust-runtime/smithy-eventstream/src/smithy.rs
- rust-runtime/smithy-http/Cargo.toml 1 addition, 1 deletionrust-runtime/smithy-http/Cargo.toml
- rust-runtime/smithy-http/src/event_stream.rs 7 additions, 504 deletionsrust-runtime/smithy-http/src/event_stream.rs
- rust-runtime/smithy-http/src/event_stream/input.rs 257 additions, 0 deletionsrust-runtime/smithy-http/src/event_stream/input.rs
- rust-runtime/smithy-http/src/event_stream/output.rs 533 additions, 0 deletionsrust-runtime/smithy-http/src/event_stream/output.rs
Loading
Please register or sign in to comment