Bug 231509 - Open in Browser action under GlassFish node uses incorrect browser
Open in Browser action under GlassFish node uses incorrect browser
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: GlassFish
7.3.1
All All
: P3 (vote)
: 7.4
Assigned To: TomasKraus
issues@serverplugins
NB_ONLY
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-19 09:46 UTC by Petr Jiricka
Modified: 2013-08-09 08:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo