[MGNLDMS-230] File is displayed regardless of its name Created: 20/Apr/12  Updated: 04/Sep/13  Resolved: 30/Apr/12

Status: Closed
Project: Document Management System (closed)
Component/s: None
Affects Version/s: 1.5.2, 1.6.1
Fix Version/s: 1.5.4, 1.6.2

Type: Bug Priority: Neutral
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLDMS-209 Invalid characters should not break t... Closed
is related to MGNLDMS-218 File is displayed regardless of its e... Closed
is related to MGNLDMS-223 CLONE -Static file is displayed regar... Closed
is related to MGNLIMG-115 Images are displayed regardless of it... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

File stored in dms is displayed even if you reference it using invalid name. It should check if file with this name really exist possibly returns "file does not exist".
Reproduce on demoauthor.magnolia-cms.com
Link: http://demoauthor.magnolia-cms.com/dms/demo-project/img/logos/magnolia-logo/magnolia-logo.png return image called magnolia-logo.png
Link: http://demoauthor.magnolia-cms.com/dms/demo-project/img/logos/magnolia-logo/youcanwritehereanything.png return the same image like in previous example
Same behaviour can be seen also with static-links.

This issue is caused by changes made for MGNLDMS-209



 Comments   
Comment by Jan Haderka [ 27/Apr/12 ]

No magic char replacements pls.

Comment by Jan Haderka [ 02/May/12 ]

Not so sure if getFileName() method should not return name w/ replaced chars by default. But leave it as is for now since there might be side effects and we would need more tests first.

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