[DEFECT] Site Variables not escaping double quotes
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
When inputting something like JSON format into a Site Variable, it doesn't correctly escape the double quotes which results in the value being overwritten to what comes before the first quote.
Steps to Reproduce
https://github.com/user-attachments/assets/e25cb71f-faf5-4c1d-a9ef-3fe0b357ac3a
Acceptance Criteria
Ensure double quotes are escaped correctly so when saving Site Variables the value is retained.
dotCMS Version
Current Evergreen | 26.02.27-01
Severity
Medium - Some functionality impacted
Links
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the issue with a Site Variable containing JSON and trace the save path to identify where double quotes are lost. Done means the complete value, including double quotes, remains unchanged after saving.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100