Skip to content

Ask pystache to escape the attachment description for outbound#196

Merged
stevenmccullaghmadetech merged 4 commits intomainfrom
NIAD-3188
Jan 7, 2025
Merged

Ask pystache to escape the attachment description for outbound#196
stevenmccullaghmadetech merged 4 commits intomainfrom
NIAD-3188

Conversation

@adrianclay
Copy link
Copy Markdown
Contributor

@adrianclay adrianclay commented Nov 14, 2024

⚠️ Before merging this needs some careful thought on how to perform E2E testing, and roll this out safely to downstream consumers ⚠️

What

Pystache will use cgi.escape internally to map the following chars:

  • < -> &lt;
  • > -> &rt;
  • & -> &amp;

Why

Performing this will allow inbound descriptions to include these characters within the JSON, and result in valid XML being generated by the adaptor.

Type of change

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the Changelog with details of my change in the UNRELEASED section if this change will affect end users

Pystache will use cgi.escape internally to map the following chars:
  - "<" -> "&lt;"
  - ">" -> "&rt;"
  - "&" -> "&amp;"

Performing this will allow inbound descriptions to include these
characters within the JSON, and result in valid XML being generated
by the adaptor.
@adrianclay adrianclay force-pushed the NIAD-3188 branch 2 times, most recently from a19a8b7 to b411bf0 Compare November 14, 2024 16:06
Pystache will use cgi.escape internally to map the following chars:
  - "<" -> "&lt;"
  - ">" -> "&rt;"
  - "&" -> "&amp;"

Performing this will allow outbound descriptions to include these
characters within the JSON, and result in valid XML being generated
by the adaptor.
This reverts commit d9c3d84.
@stevenmccullaghmadetech stevenmccullaghmadetech merged commit 92c3255 into main Jan 7, 2025
@stevenmccullaghmadetech stevenmccullaghmadetech deleted the NIAD-3188 branch January 7, 2025 14:08
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.

3 participants