This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 23505 - Exit code handling required for external browser command
Summary: Exit code handling required for external browser command
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-15 11:03 UTC by Alexei Mokeev
Modified: 2015-01-28 13:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Mokeev 2002-05-15 11:03:47 UTC
If by some reason your external browser don't
start and return non-zero code, IDE will not
report error.

Steps to reproduce:
1)By same way make your browser unusable. For
example on Solaris 8 and netscape you
can play with XFILESEARCHPATH variable in such
maner, that netscape on startup will say:
"netscape: couldn't find our resources?
<skipped>
        Also check for this file in your home
directory, or in the
        directory called `app-defaults' somewhere
under /usr/lib/.
"
return 255 as exit code($? variable) and don't
start.
2)Check, that External Browser(Unix) is your
default browser for IDE
3)Check, that External Browser(Unix) is configured
to run netscape {params}
4)Check, that no Netscape's window is opened on
your DISPLAY
(xwininfo -name Netscape must say: No window with
name Netscape exists!
5)Try to perform execute any servlet and note,
that "Running command netscape ..." is printed in
status line, browser don's started without any
error messages.

It may confuse user, because he can't locate
problem.

Well reproduced on Solaris 8 with FFJ4.0 EE RC1
and netscape 4.61
Comment 1 Marek Grummich 2002-07-22 09:51:37 UTC
Set target milestone to TBD
Comment 2 _ rkubacki 2003-06-05 14:38:43 UTC
Exit code is checked now though it is not always possible (sometimes
process may not finish in a reasonable time).
Comment 3 Alexei Mokeev 2003-06-06 11:34:48 UTC
Exit code is only partly checked now(for Solaris 9).

1)External Browser(Unix): Exit code is checked, but message is
confusing for user. It says "Cannot execute /usr/bin/netscape ..."
But really the command was executed but just returned non-zero exit code.
2)External Browser(Command Line): Exit code is not checked at all.
Even if command was executed and returned non-zero nothing happens.