[MGNLDMS-239] Bad redirect in DMSDownloadServlet when filename and node name are different Created: 06/Sep/12  Updated: 27/Sep/12  Resolved: 25/Sep/12

Status: Closed
Project: Document Management System (closed)
Component/s: None
Affects Version/s: 1.5
Fix Version/s: 1.6.4

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

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Reproduce on demoauthor:
In dms /demo-project/img/logos/ rename URL for magnolia-logo to magnolia-logo1

then got to http://demoauthor.magnolia-cms.com/dms/demo-project/img/logos/magnolia-logo1.png
DMSDownloadServlet then redirect you to
http://demoauthor.magnolia-cms.com/dms/demo-project/img/logos/magnolia-logo1.png/magnolia-logo.png



 Comments   
Comment by Jan Haderka [ 17/Sep/12 ]

Naming of variables in the servlet is confusing. It's not really an extension what you are looking for. What you are looking is validating the path and right now every path that contains dot in a name is invalid. It might be best to extract this piece of code in a protected boolean isValidPath(String path) method so it's clear what you do and anyone can change that behaviour should they need so.

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