dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
853 stars 467 forks source link

Search And Replace Tool Does Not Replace Text In Certain Content #25576

Open weiyiwang-dotcms opened 1 year ago

weiyiwang-dotcms commented 1 year ago

Parent Issue

No response

Problem Statement

The search and replace tool does not replace the text within content in many instances. These include but are not limited to:

  1. Text within WYSIWYG field
  2. Text within block editor field
  3. Code within VTL files

Steps to Reproduce

  1. Upload a vtl file to the dotCMS site as a file asset
  2. Navigate to Maintenance > Tools > Search and Replace
  3. Try to find a replace some text from the vtl file you uploaded.

Alt

  1. Create a new content type with a WYSIWYG field
  2. Create a new contentlet of that content type, with some text in the WYSIWYG
  3. Try to find and replace the text

Acceptance Criteria

The Search and Replace tool should be able to replace text throughout all content, as well as in file assets.

dotCMS Version

23.01.3

Proposed Objective

Technical User Experience

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.zendesk.com/agent/tickets/112448 https://dotcms.slack.com/archives/C028Z3R2D/p1689628426380919

Assumptions & Initiation Needs

Current Code: https://github.com/dotCMS/core/blob/70d6f51110065b945ecd6ebe82dc0fb8926c1e7e/dotCMS/src/main/java/com/dotmarketing/util/MaintenanceUtil.java#L458

Quality Assurance Notes & Workarounds

Content_as_json is likely causing the search and replace feature to not work for some of these fields/files.

Sub-Tasks & Estimates

No response

github-actions[bot] commented 12 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.