batch script autolaunches while viewing repository files!?
Hi!
I've stumbled across the problem that I wanted to look at a build script of a component. The build scripts we use are plain batch file, which are text files but also recognized as executables by the OS due to the .bat extension.
Now, from the repo file viewer, I couldn't find a way to just look at the content of that file. Instead, "Open File" actually opened andexecuted the batch script, which came as a (harmless) surprise. However, it doesn't always have to be that harmless, it could have been a malicious script. Even a well-intended script can become a bother if executed in the wrong context.
Question now: Is this intended? Both the fact that the batch is launched and that there is no way to just look at the text file?
Regards,
Uli
I've stumbled across the problem that I wanted to look at a build script of a component. The build scripts we use are plain batch file, which are text files but also recognized as executables by the OS due to the .bat extension.
Now, from the repo file viewer, I couldn't find a way to just look at the content of that file. Instead, "Open File" actually opened and
Question now: Is this intended? Both the fact that the batch is launched and that there is no way to just look at the text file?
Regards,
Uli
One answer
I've submitted this as work item 178145.
As a workaround until that is available, you probably have to load that
file into the file system, and then use an editor to view it.
Cheers,
Geoff
On 9/21/2011 12:23 PM, ulricheckhardt wrote:
As a workaround until that is available, you probably have to load that
file into the file system, and then use an editor to view it.
Cheers,
Geoff
On 9/21/2011 12:23 PM, ulricheckhardt wrote:
Hi!
I've stumbled across the problem that I wanted to look at a build
script of a component. The build scripts we use are plain batch file,
which are text files but also recognized as executables by the OS due
to the .bat extension.
Now, from the repo file viewer, I couldn't find a way to just look at
the content of that file. Instead, "Open File" actually
opened and executed the batch script,
which came as a (harmless) surprise. However, it doesn't always have
to be that harmless, it could have been a malicious script. Even a
well-intended script can become a bother if executed in the wrong
context.
Question now: Is this intended? Both the fact that the batch is
launched and that there is no way to just look at the text file?
Regards,
Uli