Repository navigation
fix: escape single quotes in curl command payload #2224 - #2225
Merged
Merged
Conversation
Signed-off-by: SebastienDegodez <[email protected]>
SebastienDegodez
force-pushed
the
fix/curl-clipboard-single-quote-escaping
branch
from
July 16, 2026 20:44
e2f82f8 to
d79f944
Compare
SebastienDegodez
marked this pull request as ready for review
July 16, 2026 20:45
|
lbroudoux
approved these changes
Jul 28, 2026
lbroudoux
left a comment
Member
There was a problem hiding this comment.
LGTM. Thanks @SebastienDegodez
lbroudoux
pushed a commit
that referenced
this pull request
Aug 5, 2026
Signed-off-by: SebastienDegodez <[email protected]> (cherry picked from commit fb65200)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This pull request improves the handling and testing of cURL command generation in the
ServiceDetailPageComponent. The main focus is on correctly escaping apostrophes in JSON payloads to ensure the generated cURL commands remain valid and functional, especially when the payload contains single quotes.Bug Fixes and Improvements:
service-detail.page.ts, webapp/src/main/webapp/src/app/pages/services/{serviceId}/service-detail.page.tsL939-R940)Testing Enhancements:
service-detail.page.spec.ts) that verifies cURL command generation, specifically testing that JSON payloads containing apostrophes are correctly escaped and can be parsed back to their original content.