[MGNLUI-8088] Intermittent Error when editing/saving or opening/closing a component in Magnolia Created: 23/May/23  Updated: 20/Jun/23  Resolved: 08/Jun/23

Status: Closed
Project: Magnolia UI
Component/s: framework
Affects Version/s: 6.2.34
Fix Version/s: 6.3.0, 6.2.35

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Adam Siska
Resolution: Fixed Votes: 1
Labels: VN-Testing
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 0.75d Time Spent: 0.75d
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: Text File Error editing or opening component.txt    
Issue Links:
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-8103 Implementation Sub-task Completed Adam Siska  
MGNLUI-8104 Code review Sub-task Completed Quach Hao Thien  
MGNLUI-8105 Preint QA Sub-task Completed Quach Hao Thien  
MGNLUI-8106 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:
Sprint: Nucleus 38
Story Points: 2
Team: Nucleus
Work Started:
Approved:
Yes

 Description   

Steps to reproduce

  1.  Customer facing intermittent error when editing/saving or opening/closing a component. As per investigation, the error occurs in:
    info.magnolia.util.Util:createUniqueName(String baseName)
    
    trailingIndex = Integer.parseInt(baseName.substring(trailingIndexStartPosition));
    
  2.  Issue happen due to wrong parsing of random sub-string from node UUID. See attached log.

.. Logs, screenshots, gifs...

Expected results

  • By fixing the coding error, we can have it run properly as our expected result.

.. Justify non-trivial expectations with a link to a doc or a relevant discussion.

Actual results

  • Issue sometimes happen which prevented editors from editing and saving component.

Workaround

  • N/A

Development notes

  • Coding error.


 Comments   
Comment by Quach Hao Thien [ 07/Jun/23 ]

Solution:

Replace the usage of Util.createUniqueName(id) by a simple string concatenation to avoid the NumberFormatException

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