Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 284540 - [Net] Changing nonProxiedHosts does not update the system properties
Summary: [Net] Changing nonProxiedHosts does not update the system properties
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 03:17 EDT by Kaloyan Raev CLA
Modified: 2010-04-19 06:54 EDT (History)
1 user (show)

See Also:


Attachments
unit test (2.47 KB, patch)
2009-07-24 03:27 EDT, Kaloyan Raev CLA
pawel.pogorzelski1: iplog+
Details | Diff
Patch_v01 (2.10 KB, patch)
2010-04-19 06:22 EDT, Pawel Pogorzelski CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2009-07-24 03:17:08 EDT
I call the IProxyService.setNonProxiedHosts() to change the proxy settings during runtime. It seems that calling this method alone does not update the system properties. 

My workaround for the bug is to make additional fake calls to IProxyService.setProxyData(). This triggers the system properties update.
Comment 1 Kaloyan Raev CLA 2009-07-24 03:27:57 EDT
Created attachment 142486 [details]
unit test

I attach a unit test that reproduces the bug. 
Inside the unit test is included the workaround (commented).
Comment 2 Pawel Pogorzelski CLA 2010-04-19 06:22:18 EDT
Created attachment 165257 [details]
Patch_v01

Kaloyan's patch with minor modifications.
Comment 3 Pawel Pogorzelski CLA 2010-04-19 06:24:52 EDT
Patch_v01 with the test in HEAD. I'm marking the problem as FIXED. The actual fix was introduced on bug 309313. Thanks Kaloyan.