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 76603 - unchecked "Use IDE proxy setting" is being ignored
Summary: unchecked "Use IDE proxy setting" is being ignored
Status: VERIFIED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-19 13:08 UTC by Lukas Jungmann
Modified: 2006-10-05 21:20 UTC (History)
1 user (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 Lukas Jungmann 2006-05-19 13:08:27 UTC
-start IDE
-set proxy configuration for glassfish in its domain.xml
-uncheck "Use IDE proxy setting" in server manager
-start glassfish from IDE
-go to JVM options and search for eg. "http.proxyHost" property (was originally
set in domain.xml)

=> there's no such property, if I check domain.xml then I see that all proxy
related changes I've made in domain.xml are lost

-workaround is to not start server from IDE
Comment 1 Nitya Doraisamy 2006-06-27 07:23:55 UTC
The IDE proxy settings will be propagated to server only when checkbox is selected.
Comment 2 Lukas Jungmann 2006-08-15 23:00:40 UTC
But that's still not true in build 200608140000.
Comment 3 Nitya Doraisamy 2006-08-16 00:21:29 UTC
The behaviour described in the issue works as expected. I have listed the tested
 workflows below. All except the last one are working. Working on a fix for that.

What is the issue you are facing?

WorkFlow 1:
Set jvm options in domain.xml
Add server to IDE.
Uncheck 'Use IDE settings'
Start server.
=> Previously set values are present in domain.xml

WorkFlow 2:
Select the 'Use IDE settings'
In Tools-->Option, select 'no proxy'
Restart server
=>The proxy values are removed from domain.xml

WorkFlow 3:
In Tools-->Option, select  HTTP Proxy : set proxy value
Restart server

WorkFlow 4:
Domain.xml has proxy setting has values, say webcache.sfbay.sun.com
In IDE, select HTTPproxy and set value to something other than
webcache.sfbay.sun.com, like cache.sfbay.sun.com
Select 'Use IDE proxy setting'
Restart server
=> The modified proxy values are not updated in the server. 
Working on a fix for this.


The third option where proxy values are set, but aremodified in the IDE does'nt
work. I will fix that.
Comment 4 Lukas Jungmann 2006-08-16 00:53:34 UTC
there must be something weird, what I did was:

-set custom proxy settings in options
-register server in the IDE
-start server

=> IDE proxy settings has been corretly used

-uncheck use IDE proxy settings for glassfish in server manager
-restart server

=> IDE proxy settings has been still in use (according to what I saw in
properties of JVM options node and in domain's domain.xml) - I'd expect here
that there will be no proxy related properties set


Other case (probably other issue):
just now I wanted to somehow reproduce this behaviour, so I
-create new domain (=> 2nd instance of glassfish in server manager)
-custom proxy settings has been set in the IDE
-start server

=> proxy related options were not used although there's checked "Use IDE proxy
settings" checkbox in the IDE's server manager (the opposite of what I saw in
previous case when there was just one instance of glassfish registered in the IDE)
Comment 5 Nitya Doraisamy 2006-08-16 01:12:17 UTC
Once the proxy settings are in the domain.xml, even if you uncheck the 'use IDE
settings', the values will not be removed. This is because there is way to
identify if the values in the server where set via the IDE or outside. 

The plugin will propagate whatever the current IDE settings are : no proxy,
system or custom setting when the 'Use IDE proxy setting' is selected.

The second case you described should have worked. I will debug.
Comment 6 Nitya Doraisamy 2006-08-17 20:13:52 UTC
Unable to reproduce seond case too. ie
Create a second domain in the same local installation
Add the second domain in the IDE. 
The 'Use IDE proxy' is enabled by default.
Start the server. 
If the IDE has custom proxy settings, these are written to the correct domain.xml
Comment 7 Lukas Jungmann 2006-10-05 21:20:01 UTC
works for me nowadays as well