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 21293 - External Browser doesn't handel file names which ends with spaces
Summary: External Browser doesn't handel file names which ends with spaces
Status: RESOLVED WONTFIX
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-07 10:48 UTC by Alexei Mokeev
Modified: 2002-03-20 13:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Mokeev 2002-03-07 10:48:02 UTC
Steps to reproduce:
0. Create valid browser executable, which ends within space(or several spaces)
    For example: "ln -s /usr/bin/netscape ~/bin/netspace\ \ \ "
1. Select Tools->Options->IDE Configuration->Server and External Tools Settings->Web Browsers
2. Select "External Browser(Command Line" and click on "..." button near "Browser Executable" property. 
3. Press "..." near "Process" textfield and select your executable "netscape   " 
4. In Tools->Options->IDE Configuration->System->System Setting set property Browser to "External Browser(Command Line)".
5. Try to view any HTML or execute some servlet/jsp "Cann't create process" warning window will be opened and nothing more. 
    Netscape isn't started

Reproduced under Sparc Solaris 8 and FFJ-4.0-EA build 020301
Comment 1 _ rkubacki 2002-03-07 11:16:07 UTC
[rk109395@rkubacki-ws ide]$ ln -s /usr/bin/netscape "netscape   "
[rk109395@rkubacki-ws ide]$ ./netscape\ \ \  
You don't seem to have netscape installed.
[rk109395@rkubacki-ws ide]$ ln -s /usr/bin/mozilla "mozilla   "
[rk109395@rkubacki-ws ide]$ ./mozilla\ \ \  


So it is not so easy to wrap netscape. I tried with mozilla and it
works for me. But still there is issue with space cutting in custom
property editor as noted in 21273.
Comment 2 Alexei Mokeev 2002-03-07 11:55:01 UTC
Looks like you try to execute "./netscape   " under Linux.
At least on my Linux RH6.2 box behavior the same:
"./netscape   " says, that "You don't seem to have netscape installed."
But under Solaris this is works for netscape well.

In any case, problem exist."Browser Executable" for external browser doesn't handle spaces at the
end of file name, if it was specified via "Open" dialog. So this bug shuld be reopened.
If you think, that this is more global problem(e.g not only for this property), please
fell free to reassign this bug to other category and expand description.  
Comment 3 _ rkubacki 2002-03-08 15:04:03 UTC
I tested it on Solaris too and it works for me. Can you check your
ide.log what can be wrong in your case? 

I entered separate bug 21733 to track behaviour of property editor.
Comment 4 Oleg Khokhlov 2002-03-20 11:45:05 UTC
I tried it on several sparc 2.8 computers and I was able to reproduce
this bug (with netscape\ \ \  and mozilla\ \ \ ).
Build: FFJ 4.0 EA 020318.
Comment 5 _ rkubacki 2002-03-20 13:17:22 UTC
1 it works for me even on Solaris
2 it is very unconvenient usage and we don't declare that it should work
3 if you really have problem please attach (related part of) ide.log
to see if it is executed properly and also try to run it outside of IDE.