Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Don't unmarshal unmodeled API operation responses - #532

Merged
jasdel merged 2 commits into
masterfrom
fixOpNoOutput
Jan 29, 2016
Merged

jasdel merged 2 commits into
masterfrom
fixOpNoOutput

Conversation

@jasdel

@jasdel jasdel commented Jan 29, 2016

Copy link
Copy Markdown
Contributor

Updates the SDK to not unmarshal the HTTP response body of operations
which do not have modeled output shapes. This ensures the SDK does not
attempt to unmarshal invalid response from a service. If the response
has a body it will be discarded and closed.

This change also adds named request handlers for build and unmarshaler.
This allows you to remove protocol build and unmarshal handlers by name.
The name pattern is:

awssdk.<protocol>.Build|Unmarshal|UnmarshalMeta|UnmarshalError

Updates the SDK to not unmarshal the HTTP response body of opertions
which do not have modeled output shapes. This ensures the SDK does not
attempt to unmarshal invalid response from a service. If the response
has a body it will be discarded and closed.

This change also adds named request handlers for build and unmarshaler.
This allows you to remove protocol build and unmarshal handlers by name.
The name pattern is:

```
awssdk.<protocol>.Build|Unmarshal|UnmarshalMeta|UnmarshalError
```
@jasdel jasdel added the bug This issue is a bug. label Jan 29, 2016
@jasdel jasdel self-assigned this Jan 29, 2016
jasdel added a commit that referenced this pull request Jan 29, 2016
Don't unmarshal unmodeled API operation responses
@jasdel
jasdel merged commit 2a34ea8 into master Jan 29, 2016
@jasdel
jasdel deleted the fixOpNoOutput branch January 30, 2016 01:19
xibz added a commit that referenced this pull request Feb 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug This issue is a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants