[MGNLUI-2494] Dialog doesn't show up in case of inconsistency of definition and stored data type Created: 06/Dec/13  Updated: 07/Oct/16  Resolved: 09/Dec/13

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 5.2
Fix Version/s: 5.2.1

Type: Bug Priority: Major
Reporter: Eric Hechinger Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MGNLUI-4031 Unreferenced properties created by th... Closed
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

 Description   

If the definition of a dialog field define the field type, for example, as Boolean, and if the stored value (in the JCR repo) is of type String, the related dialog will not be displayed.
Current implementation do not guaranty the integrity of the data type.

Solution:
If a inconsistency is detected between the field definition and the stored type, give the authority to the definition:

  • JCR stored type is String
  • Definition is Boolean
    --> JCR data will be converted to a Boolean Type and value.

If the JCR value is not convertible to the definition type, null value is then used.


Generated at Mon Feb 12 08:57:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.