Skip to content

SendRawEmail Exception: Malformed RawMessage (with extra periods being inserted) #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
triton3 opened this issue Jun 6, 2016 · 2 comments
Labels
bug This issue is a bug.

Comments

@triton3
Copy link

triton3 commented Jun 6, 2016

This is related to issue #197 .
The same problem of extra periods occurring in the raw message key. See example below (RawMessage Data is truncated):

Action=SendRawEmail&RawMessage..Data=FBhaVbE1WVl***WTIxCg%3D%3D&Version=2010-12-01

The patch suggested in referenced post fixes the problem and allows emails to go through.

File: /aws-cpp-sdk-email/source/model/SendRawEmailRequest.cpp
Method: Aws::String SendRawEmailRequest::SerializePayload() const, line 52

- m_rawMessage.OutputToStream(ss, "RawMessage.");
+ m_rawMessage.OutputToStream(ss, "RawMessage");

Output after fix (RawMessage Data is truncated):

Action=SendRawEmail&RawMessage.Data=FBhaVbE1WVl***WTIxCg%3D%3D&Version=2010-12-01
@JonathanHenson JonathanHenson added the bug This issue is a bug. label Jun 22, 2016
@JonathanHenson
Copy link
Contributor

Wow, good find! This actually occurs erroniously in 65 other places as well. I've fixed the problem in the generator and will push it out shortly

@JonathanHenson
Copy link
Contributor

I just pushed the change out. It will be a few ours before the change makes it out to NuGet, so be aware of that if you are using NuGet.

cobookman pushed a commit to cobookman/aws-sdk-cpp that referenced this issue Jan 17, 2022
* Custom keychain support for macOS TLS (aws#204)
* Update submodules and pull in keychain path override API PR

Co-authored-by: Eero Kurimo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants