[MGNLUI-7590] nodeNameValidator not reading errorMessage property Created: 26/Oct/22  Updated: 29/Nov/22

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Nucleus Quality Maintenance
Team: Nucleus

 Description   

Steps to reproduce

  1.  Add a name field whose validator is nodeNameValidator and set errorMessage property
  2.  Create two nodes with different names
  3. Rename one of them so names are equal

Expected results

Validation error is shown with the message from the definition property errorMessage

Actual results

Message shown is from property ui-framework-jcr.validator.name.unique of messageBundle

Development notes

The error message is not considering the value of the definition property errorMessage



 Comments   
Comment by Adam Siska [ 08/Nov/22 ]

Not implemented (message is hardcoded): https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/validator/NodeNameFieldValidatorFactory.java#105

Generated at Mon Feb 12 09:47:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.