It's all about the answers!

Ask a question

batch script autolaunches while viewing repository files!?


Ulrich Eckhardt (23612223) | asked Sep 21 '11, 12:08 p.m.
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

One answer



permanent link
Geoffrey Clemm (30.1k33035) | answered Sep 22 '11, 12:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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:
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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.