HomeHome Product Discus... Product Discus...SmithCartSmithCartName is changed when downloading  a file having a double extension using auto generate GUID [IE bug]Name is changed when downloading a file having a double extension using auto generate GUID [IE bug]
Previous
 
Next
New Post
3/5/2012 7:25 AM
 

Hi,

 

Using DNN 6.0.3 with Smith Cart 4.93

When using the auto generate Guid feature and if the file name contains a double extension, the file name indicated in the file SaveAs dialog box is different from the original file name.

Note that the name seems to be meaningfull to be able to reproduce the bug. The name used is 'testMultipleExtension.1.dll'. The proposed filename to be downloaded is 'testMultipleExtension.1[1]'.

The original filename is 'testMultipleExtension.1.dll' (indicated in the background window title, whereas the file name to download is named ''testMultipleExtension.1[1]'.

 

 
New Post
3/7/2012 9:12 PM
 

Hi Rico,

Has the file been downloaded more than once?

Once downloaded is the still incorrectly named on the hard drive?

Which browser are you using?

The dialog box that is shown above is not controlled by SmithCart, it is controlled by the browser. Perhaps you are using the "hide file extensions for known types" option in Windows?

Thanks,
 

 
New Post
3/12/2012 5:29 AM
 

Hi Kevin and thanks for the answer.

 

This problem occurs even for the first donwnload (ie the file does not exist on the download directory). Once the download completes, the file is still named 'testMultipleExtension.1[1]'. The 'Hide extension for known type' Windows option is disabled (so file extensions are visible).

 

It seems that the problem occurs only with Internet Explorer (version 8.0.7600.16385) AND with the 'Auto generate GUID' feature enabled. The file is well named when not using 'Auto generate GUID' OR downloading with the Chrome browser.

 

 

Thanks again.

 
New Post
3/12/2012 5:01 PM
 
Hi Rico,

The dialog box that is shown above is controlled by IE, not controlled by SmithCart.

Keep in mind that most virus protection software and security programs will block the use of double file extensions as viruses, worms, and Trojan horses all make use of the double file extension. The Windows operating systems allows the creation of files names with a number of spaces in it. This trick is intended to fool users into believing that the file they are viewing cannot be executed.

It is difficult for end users to understand all the file extensions that can be used and those that may be considered dangerous or Executable so it is important to choose a naming convention which does not require the user change anything on their end.

Thanks,
 
New Post
3/15/2012 9:36 AM
 

Hi Kevin and thanks for these explanations.

 

Just to confirm that this is an Internet Explorer bug only. I created a very simple html file containing 2 links:

<a href="http://myDomain.com/testMultipleExtension.1.dll">Link text</a>
<br/>
<a href="http://myDomain.com/testMultipleExtension.1.dll?guid=123312123">Link text2</a>

 

Using Internet explorer, the downloaded file is named 'testMultipleExtension.1.dll' for the first link (correct behaviour) and is named 'testMultipleExtension.1[1]' for the second link. This does not happen when using Chrome or Firefox (ie the file is well named in both cases).

 

So appending parameters to a download link in Internet Explorer causes a file having a double extension to be renamed.

 

Thanks anyway for your support.

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartName is changed when downloading  a file having a double extension using auto generate GUID [IE bug]Name is changed when downloading a file having a double extension using auto generate GUID [IE bug]