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 231509 - Open in Browser action under GlassFish node uses incorrect browser
Summary: Open in Browser action under GlassFish node uses incorrect browser
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-19 09:46 UTC by Petr Jiricka
Modified: 2015-09-17 13:09 UTC (History)
2 users (show)

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 Petr Jiricka 2013-06-19 09:46:06 UTC
1. Create a Java web project with GlassFish target
2. Using the browser switcher in the toolbar, choose some browser (e.g. Chrome)
3. Under Tools | Options | General, choose another browser (e.g. Firefox)
4. Run the project - project is deployed and opened in Chrome as expected
5. Under Services tab | Servers | GlassFish | Applications, right-click the application that was just deployed and select Open in Browser

=> Application URL is opened in the browser from IDE options (Firefox). It should be opened in the browser used by this project (Chrome).
Comment 1 David Konecny 2013-06-19 23:38:57 UTC
I'm thinking about how to implement this. GF support would have to use FileOwnerQuery to map deployed app back to NB project and then call project.getLookup().lookup(ProjectBrowserProvider.class).getActiveBrowser().createNewBrowserPane().showURL(someURL). That may work. ProjectBrowserProvider is defined in web.browser.api module.
Comment 2 Vince Kraemer 2013-08-05 18:29:16 UTC
opened issue 233968 to track this for TC.
Comment 3 Petr Hejl 2013-08-09 08:51:18 UTC
(In reply to comment #0)
> 1. Create a Java web project with GlassFish target
> 2. Using the browser switcher in the toolbar, choose some browser (e.g. Chrome)
> 3. Under Tools | Options | General, choose another browser (e.g. Firefox)
> 4. Run the project - project is deployed and opened in Chrome as expected
> 5. Under Services tab | Servers | GlassFish | Applications, right-click the
> application that was just deployed and select Open in Browser
> 
> => Application URL is opened in the browser from IDE options (Firefox). It
> should be opened in the browser used by this project (Chrome).

Is this an issue? Under applications node there are any applications deployed on server not just deployed from the IDE. With the suggested behavior some nodes will be opened in the browser from IDE options some other nodes will be opened in some other browser. From the user perspective this may seems to be pretty random unless he realizes it is related to browser switcher. There would be other issues such as ear with web and possibly multiple projects opened having the same context root.

From my point of view this would be complicated heuristic (the devil is in "map deployed app back to NB project") with dubious outcome.
Comment 4 Martin Balin 2015-09-17 13:09:59 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.