-
Notifications
You must be signed in to change notification settings - Fork 480
Open
Labels
Description
Problem Statement
Using the current content edit screen, when adding information to a Key/Value pair, if there happens to be a tab character copied into the value, when publishing an "Invalid JSON" error appears.
Note: This isn't happening in the new Content Edit screen beta.
Steps to Reproduce
keyvalueescape.mp4
In an evergreen demo environment using the current content edit screen, not the beta..
- Go to Content Types
- Create a new Content Type
- Add a Title Field
- Add a Key/Value Pair Field.
- Save the content type.
- Go to the Content Search screen.
- Create a new contentlet of the new content type.
- In a new TextEdit window, type in a few random characters and then press tab.
- Cmd/Ctrl+A to select everything including the tab space and copy.
- Add in a title, and a key/value pair, pasting the copied value into the value field.
- Try publishing.
Acceptance Criteria
Have the Key/Value field in the current content edit screen correctly escape things like tab characters such as \t
dotCMS Version
Current evergreen. 26.01.05-01
Severity
Medium - Some functionality impacted
Links
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Next 2-4 Sprints