dotCMS / dotCMS/core

[DEFECT] Site Variables not escaping double quotes

Open
#34,878 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support stale Team : Maintenance
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

https://dotcms.freshdesk.com/a/tickets/35745

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.