dotCMS / dotCMS/core

[DEFECT] An "&" symbol in Tags breaks content Export functionality when filtering by said tag.

Open
#33,274 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

  1. Go to the Content Search Portlet
  2. Select "Activity" in the Content Type drop down
  3. Open an Activity and add a tag like "Test & thing" or similar.
  4. Publish the Activity.
  5. Go back to the Content Search screen
  6. Filter by the new tag created
  7. Select all
  8. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.