[MGNLUI-6940] Dots in asset filenames are trimmed Created: 28/May/21  Updated: 18/Nov/21  Resolved: 09/Nov/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.12
Fix Version/s: 6.2.13

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Yen Lac Tue
Resolution: Fixed Votes: 2
Labels: VN-Maintenance, maintenance
Remaining Estimate: Not Specified
Time Spent: 2d 4.75h
Original Estimate: Not Specified

Attachments: PNG File browser-view.png     XML File config.modules.multisite.config.sites.travel.templates.availability.xml     PNG File incorrect-trim.png    
Issue Links:
Problem/Incident
relation
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:
Sprint: Assets Maintenance 1
Story Points: 3

 Description   

When uploading an asset which contains multiple dots in the filename the extension is being trimmed off incorrectly.

Reproduce

Actual
When uploading the example file the name is trimmed using the second to that last dot instead of the last dot. See in the screen shot the segment "availability" is now missing.

The problem can also been seen from the browser view

Expected
When uploading the asset the filename should be preserved


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