[MGNLDMS-61] % (percent) characters in a file name result in errors when trying to download a document from DMS Created: 23/Aug/06  Updated: 03/Jul/14  Resolved: 29/Oct/09

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

Type: Bug Priority: Major
Reporter: Boris Kraft Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by MAGNOLIA-2098 Download of a file from a paragraph o... Closed
relation
is related to MGNLDMS-62 DMS: zip upload breaks international ... Closed
is related to MGNLDMS-173 Documents with special characters lik... Closed
is related to MAGNOLIA-2524 AggregationState.decodeURI is wrong -... Closed
is related to MGNLDMS-209 Invalid characters should not break t... Closed
is related to MGNLDMS-173 Documents with special characters lik... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

When I upload a document into the DMS where its filename contains a percent sign, the download will result in an error:

Invalid URI

Your browser sent a request that this server could not understand.

Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.

Here is an example of the URL that is being called:
http://somewhere/magnolia/dms/somefolder/2006/174/attachments/a_manuskripte/test-prozent---123/test%20prozent%20%25%20123.pdf

The %25 is the escape character for percent. Just in case it matters: the document has not been manually uploaded but through the DMS API.



 Comments   
Comment by Magnolia International [ 10/Sep/08 ]

Just tried with Magnolia 3.6.2-SNAPSHOT and DMS-1.2.6-SNAPSHOT, download through the admininterface, and can't reproduce with either Safari or Firefox.
I'm assuming this has been fixed as a side-effect of other fixes in dms or magnolia, but maybe I missed something? Can you confirm ?

http://localhost:8080/magnolia-empty-webapp/dms/untitled/i-has-100--frozen/i-has-100%25-frozen.jpg

Comment by Magnolia International [ 10/Sep/08 ]

moving to 1.2.7 along with other encoding-related issues

Comment by Jan Haderka [ 13/Oct/08 ]

Works fine on demoauthor running 3.6.3 (using FF3.0.3 on linux as a client).

Comment by Jan Haderka [ 29/Oct/09 ]

Fixed by MAGNOLIA-2524. Please note that the %nm remain in the name of the file and are fed back to the browser when downloading the file. Some browsers choose to "decode" such names to valid local names changing for example %20 into space while saving the document in local FS.

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