views:

36

answers:

1

Hi All,

After further investigation on basis of previous question url encode/decode is working properly. Issue is something with Apache server (might be) which serves file download request Specially if my file name ends with % sign, it fails. For e.g.


Original File name:

204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1,2%.pdf 



Url in browser after clicking on download link:

http://pdf/204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1%2C2%25.pdf

This returns 400 error with bad request. I am using LAMP with Kohana 3 framework.

Please guide.

Thanks is advance.

A: 

You missed a Host in the address. If it's only tipping fault the server may does not have permissions to access the file.

schwer
I have removed Host to shorten a link. Other files at same repository can be accessed without any problem. So issue of permission.
Asif Mulla
Sorry meant typing. May it's twice decoded. This would cause a problem if there is a '%' again, but not without.
schwer
Even though, if you directly put address in browser http://pdf/204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1,2%.pdf, it results in bad request only.
Asif Mulla
This is because the browser forwards to pdf.com. I think this not what you want. Anyway encoded url (%25 instead %) gives 404 Not found.
schwer
This is because "%.p" cannot be decoded.
schwer