[MGNLUI-7883] Date field in CT app can be saved but not retrieved Created: 24/Feb/23  Updated: 09/May/23  Resolved: 27/Mar/23

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.28
Fix Version/s: 6.3.0, 6.2.31

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1h Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: File breakOffer-app.yaml     File breakOffer.yaml    
Issue Links:
Problem/Incident
causes MGNLUI-7970 Use same field in 6.3 as in 6.2 for m... Closed
Relates
relates to MGNLUI-7960 Replace deprecated jcrMultiValueField... Open
causality
caused by MGNLUI-6439 Cannot set new property type Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7914 Implementation Sub-task Completed Adam Siska  
MGNLUI-7915 Code review Sub-task Completed Quach Hao Thien  
MGNLUI-7916 Preint QA Sub-task Completed Sang Ngo Huu  
MGNLUI-7917 QA Sub-task Closed Antonín Juran  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Testcase included:
Yes
Release notes required:
Yes
Date of First Response:
Visible to:
Thomas Duffey
Epic Link: FieldsMaintenance
Sprint: Nucleus 32
Story Points: 2
Team: Nucleus
Work Started:

 Description   

Steps to reproduce

  1. Configure a content type with a date field
  2. Configure a default app uses that content type
  3. Open configured app and create an item, choose a date value and save the item
  4. Reopen saved item to see that the date field has not been retrieved nor populated
  5. Edit some content, not the date field, then save it
  6. Double check from JCR to see that the date field content has been wiped out to an empty value

Expected results

  1. Date field should be populated and stored correctly
  2. Do not loose customers' content

Actual results

  • See above

Workaround

  • use decoration to use jcrMultiField instead of jcrMultiValueField (on 6.3 one can use multiValueField)
    !content-type:breakOffer
    name: breakOffer-app
    label: Break Offer
    subApps:
      detail:
        form:
          properties:
            dates:
              $type: jcrMultiField 

Development notes

  • Logs:
    2023-02-24 14:39:11,416 WARN  .apache.commons.beanutils.converters.DateConverter:     DateConverter does not support default String to 'Date' conversion.
    2023-02-24 14:39:11,417 WARN  .apache.commons.beanutils.converters.DateConverter:     (N.B. Re-configure Converter or use alternative implementation)
    


 Comments   
Comment by Roman Kovařík [ 07/Mar/23 ]
Generated at Mon Feb 12 09:50:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.