Skip to content

Fix: Parse as text for non-binary payload #42

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willempardaens
Copy link

When using tools such as Postman or curl to send events to AEM, payload is sent as normal text/json and not as binary. So on the receiver side (plugin) it has to be treated as such. See https://community.solace.com/t/weird-chars-at-start-of-text-payload/1856.

When using getBinaryAttachment() on a string payload, you will get the following:

Sending:
{ "foo":"bar" }

Receiving:
" N{ \"foo\":\"bar\" }"

With 2 invalid characters in the beginning, which are payload-length identifiers from the Structured Data Type (SDT) formatted message.

@sjvans sjvans requested a review from David-Kunz July 2, 2025 14:42
@sjvans
Copy link
Contributor

sjvans commented Jul 2, 2025

lgtm. @David-Kunz, please review as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants