[DEFECT] An "&" symbol in Tags breaks content Export functionality when filtering by said tag.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
When filtering content in the content search screen using tags, if the tag has an & symbol inside it, the content export will export 0 contentlets.
Steps to Reproduce
https://github.com/user-attachments/assets/13e0f63b-4c29-40ea-8241-95de394226df
Using a local instance with the demo data or the demo environment
- Go to the Content Search Portlet
- Select "Activity" in the Content Type drop down
- Open an Activity and add a tag like "Test & thing" or similar.
- Publish the Activity.
- Go back to the Content Search screen
- Filter by the new tag created
- Select all
- Select the plus button and hit export
Acceptance Criteria
Allow for proper escaping of the ampersand symbol when doing content exports and filtering by a tag with an & symbol inside.
dotCMS Version
23.10.24
25.07.18-01
Severity
Medium - Some functionality impacted
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
Start with the Content Search Portlet and reproduce the export flow using a tag such as "Test & thing" on the Activity content type. Trace tag filtering through selecting all and exporting, then verify that the matching contentlets are exported instead of zero results and that the ampersand remains properly handled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100