You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix ProtobufJSONPayloadConverter to not require Buffer in the workflo… (#1170)
## What was changed
<!-- Describe what has changed in this PR -->
This is a fix to #1169
The ProtobufJsonPayloadConverter ensures that Buffer is globally
available, and if it is not, it just adds it when needed, but leaving
the global space untouched after that.
It also needs to ensure that no Buffer objects are leaked, replacing
them with Uint8Array objects.
## Why?
Protobufs containing binary fields cannot be properly encoded/decoded
with this converter without the Buffer class, and this class is not
available by default in the workflow context.
## Checklist
1. Closes <!-- add issue number here -->
#1169
2. How was this tested:
<!--- Please describe how you tested your changes/how we can test them
-->
Added a system test
0 commit comments