core icon indicating copy to clipboard operation
core copied to clipboard

[Block editor fields]: Required property not validated

Open bryanboza opened this issue 2 years ago • 5 comments

Problem Statement

The required property on block editor fields is not being validated, allowing users to create content without providing any value in these fields. This issue undermines data integrity and can lead to incomplete or invalid content being saved in the system. It affects content creators who rely on the required property to enforce proper input and validation during content creation.

https://github.com/user-attachments/assets/2c8515e3-1725-4e4f-9e5f-0d3e5d0eef10

Steps to Reproduce

  • Log into the dotCMS backend.
  • Navigate to a content type that includes a block editor field marked as required.
  • Create a new piece of content based on the content type.
  • Leave the block editor field empty and attempt to save the content.
  • Observe that the content is saved without any validation error for the required field.

Acceptance Criteria

  • Block editor fields marked as required must validate input and prevent content from being saved if the field is empty.
  • Users should receive a clear error message indicating that the block editor field is required and must be filled before saving.

dotCMS Version

Tested on the lastest main version // Docker // FF

Proposed Objective

Quality Assurance

Proposed Priority

Priority 3 - Average

bryanboza avatar Nov 22 '24 01:11 bryanboza

Note to dev: Please let me know as soon we fixed this issue, I need to enable the e2e test again

bryanboza avatar Dec 18 '24 03:12 bryanboza

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.

github-actions[bot] avatar Mar 26 '25 02:03 github-actions[bot]

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

Neehakethi avatar Nov 24 '25 18:11 Neehakethi

PRs linked to this issue

github-actions[bot] avatar Apr 07 '26 21:04 github-actions[bot]

QA PASSED ✅ Validators are appering in the old and new edit content

Image
Image

adrianjm-dotCMS avatar Apr 17 '26 17:04 adrianjm-dotCMS