[MGNLCTS-125] Translation Export fails if component variant is created Created: 08/Dec/20  Updated: 16/Aug/22  Resolved: 19/Apr/22

Status: Closed
Project: Content Translation Support
Component/s: None
Affects Version/s: 2.5
Fix Version/s: 2.5.6

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Jesus Alonso
Resolution: Fixed Votes: 0
Labels: VN-Testing, maintenance
Remaining Estimate: Not Specified
Time Spent: 1.25h
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causality
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
Date of First Response:
Epic Link: AuthorX Support
Sprint: AuthorX 7
Story Points: 1
Team: AuthorX

 Description   

Steps to reproduce

  1.  Go to: https://demo.magnolia-cms.com/.magnolia/admincentral#app:pages-app:detail;/sportstation/about:edit
  2. Create a Variant for the Jumbotron but don't change anything
  3. Go to the Translation Content Support App and try to export the page as Excel
  4. Excel Export crashes 

.. Logs, screenshots, gifs...

Expected results

  • Do the export properly and fail safe

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

Actual results

  • See above

Workaround

  • No

Development notes

Fix is easy. The Class requires a modification date at the line 76, The method .getTime() will fail if the mod date is null.

https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-translation-support/browse/magnolia-content-translation/src/main/java/info/magnolia/translation/io/writer/AbstractTranslationItemWriter.java#76



 Comments   
Comment by Jesus Alonso [ 20/Apr/22 ]

lastModificationTime was null in this case.  Now it is checked and we use an empty string in these cases.

Generated at Mon Feb 12 00:33:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.