Skip to content
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

Payload factory is not working properly for xml payload #940

Open
thuva9872 opened this issue Mar 7, 2025 · 0 comments
Open

Payload factory is not working properly for xml payload #940

thuva9872 opened this issue Mar 7, 2025 · 0 comments

Comments

@thuva9872
Copy link

Description

  1. When trying to add a new payload factory mediator with xml payload, it is trying to encode the value.
Image

The generated xml for this is as follows,

<payloadFactory media-type="xml" template-type="default">
	<format>&lt;xml/&gt;</format>
</payloadFactory>
  1. Addition to that, if we manually modify the payload with a xml with templated expressions, it is not showing the xml properly.
<payloadFactory media-type="xml" template-type="default">
	<format>
		<xml>${payload}</xml>
	</format>
</payloadFactory>

The form view for the above configuration is as follows,

Image

It is missing the xml content and only showing the expressions.

Steps to Reproduce

Issue 1

  1. Try to add a payload factory with the payload <xml>${payload}</xml>.
  2. Check the generated xml

Issue 2

  1. Go to the generated xml in the above steps.
  2. Replace the encoded payload with the original payload .
  3. Open the form

Version

4.4.0

Environment Details (with versions)

No response

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

No branches or pull requests

1 participant