I believe, I have found a problem (a bug) with Module Uploading process. I am discussing it here, just in case this has already been submitted, and I could not find it on the Bug Submission page.
Suppose, I have two files with the same name, a1.ascx in my module. The difference is that they are in different folders, like.
/MyModule/a1.ascx
/MyModule/folder/a1.ascx
Then, after the manifest is parsed, and the module is installed, DNN creates this file in only that place which appears later in the manifest (/MyModule/folder/a1.ascx in this case). The other file is simply not created, and obviously causes Run-time errors in the module.
I believe, that when a manifest is parsed, the installer caches the FileNames with their destination directories in some sort of a HashTable (or Dictionary), with the FileName being the key into the dictionary, thus leading the later definition to overwrite the earlier file definition (as the filenames are same). As a result, only the last file with that name is created.
Has somebody faced similar situation?? I have retried & confirmed that this problem exists!!!