[MGNLUI-5665] TempFilesManager.toStandardFileName not returning extension for temp files Created: 13/Feb/20  Updated: 25/Feb/20  Resolved: 13/Feb/20

Status: Closed
Project: Magnolia UI
Component/s: framework
Affects Version/s: 6.2
Fix Version/s: 6.2

Type: Bug Priority: Neutral
Reporter: Jesus Alonso Assignee: Rishab Dhar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

The following test is failing

@Test
public void toStandardFileNameTempFile() {
    // GIVEN
    String fileName = "___name.png";    // WHEN
    String standardFileName = tempFilesManager.toStandardFileName(fileName);    // THEN
    assertThat(standardFileName, is("name.png"));
} 

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