[BUG?] [Using Save as in Windows 7 explorer] Saving a file with a file name same as a folder name within a directory.
I recently encounter this issue while working on a project. I am not sure whether it should be considered as a bug.. probably not.. feel free to throw your opinion
How to generate?
1.Open a new word file in Microsoft office 2010/Notepad/Any other text editor.
2.Click Save as option.
3.Try to Save the file in a directory(folder) with some sub directory inside it.
4. Try to save the file with a name exactly the same name as any of the sub directory within that directory.
Example: If we have folder name "A" try to save the file named as "A".
Actual Result:
It actually open the folder that matched with the typed file name instead of saving the file with that name.
My Concern:
It should allow saving the file instead of opening the folder. [They are different types [directory and single file]. If you later visit that directory and rename the file to the same names as one of the directory it actually works fine with same naming!]
Whether it should be considered as a bug?
It might not be a bug but an intended use based on how windows explorer works or may be based on the most users expectations. As sometimes you need to compromise based on the expectation of most users.
Security Check:
I talked with one of my colleague and He suggested to do a security check
How to generate?
1.Open a new word file in Microsoft office 2010/Notepad/Any other text editor.
2.Click Save as option.
3.Try to Save the file in a directory(folder) with some sub directory inside it.
4. Try to save the file with a name exactly the same name as any of the sub directory within that directory.
Example: If we have folder name "A" try to save the file named as "A".
Actual Result:
It actually open the folder that matched with the typed file name instead of saving the file with that name.
My Concern:
It should allow saving the file instead of opening the folder. [They are different types [directory and single file]. If you later visit that directory and rename the file to the same names as one of the directory it actually works fine with same naming!]
Whether it should be considered as a bug?
It might not be a bug but an intended use based on how windows explorer works or may be based on the most users expectations. As sometimes you need to compromise based on the expectation of most users.
Security Check:
I talked with one of my colleague and He suggested to do a security check
"Try putting a password on a folder and seeing if you can get into the folder that way"
I tested that with password protect software and observed that password protected folder is not displayed in file explorer.So in that case I was able to save the file with the same name without any problem.
Conclusion:
This might have potential for harmful behavior but I can't verify that yet. Let me know if you find something interesting?
Conclusion:
This might have potential for harmful behavior but I can't verify that yet. Let me know if you find something interesting?
Comments