Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » problems with Eclipse Update Policy Control
problems with Eclipse Update Policy Control [message #289294] Wed, 03 August 2005 14:03 Go to next message
Marion Schmid is currently offline Marion SchmidFriend
Messages: 35
Registered: July 2009
Member
Hello!

In order to restrict updates we want to set up a mirror feature update site
in our LAN (behind the firewall).
Using Eclipse 3.1, I set up such an update site
(http://p105637:1080/IDE-Update-Site/) with one group containing the eclipse
features , and created (according to eclipse help article "Eclipse Update
Policy Control") a policy.xml file (which is located in the update site's
folder, i.e. http://p105637:1080/IDE-Update-Site/policy.xml).
The policy.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<update-policy>

<url-map pattern="*" url="http://p105637:1080/IDE-Update-Site/" />

</update-policy>

As far as I understood, this means, all connections to the update site URLs
of all features (pattern="*") - e.g. update.eclipse.org - in my IDE are
redirected to my local update site.

I tried both versions of referencing this policy.xml file, i.e.
1) entered the URL to policy.xml in the "Policy URL" text field on the
Install/Update preference page
(proxy settings are NOT enabled, as I don't want our IDE customers to
download from eclipse.org but from my local update server).

2) added this line
org.eclipse.update.core/updatePolicyFile =
http://p105637:1080/IDE-Update-Site/policy.xml to our primary plug-ins's
plugin_customization.ini.

What I expected now is, that when I go to "Software Updates" -> "Find and
install" -> "Search for new features..."
and hit the "eclipse.org update site" in order to download updates, the
connection is (by policy.xml) redirected to my local mirror and I can
download feature updates from it.

Instead, I get the well-known "Network connection problems encountered
during search" error pop-up with the detailed message
"Unable to access "http://update.eclipse.org/updates/3.0".".
Yes, because of the missing proxy - but actually I wanted to access the
local site and not update.eclipse.org.

How does the redirection mechanism of update policy work?
Can anyone of you tell me, why the redirection to the local mirror fails?
Maybe I forgot some setting or I misunderstood the meaning of the update
policy xml?

fyi: The local update site can be accessed (when proxy settings on
Install/Update prefs are disabled).

Thank you and best regards,

Marion
Re: problems with Eclipse Update Policy Control [message #289398 is a reply to message #289294] Thu, 04 August 2005 11:52 Go to previous message
Marion Schmid is currently offline Marion SchmidFriend
Messages: 35
Registered: July 2009
Member
Sorry for the posting, I changed my buggy newsreader which wasn't
customizable to download all messages.
I found another thread to this topic here which solved the problem.

In Eclipse Help
( http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.user/tasks/tasks-37.htm)
the property in plugin_customization.ini is called
org.eclipse.update.core/updatePolicyFile =<someURL>
while the correct preference would be updatePolicyURL.
That was actually my problem.

The only thing I miss is, that there's obviously no way to tell the
eclipse.org update site to look for features on my local mirror (under
Help->Software Updates->find and install->search for new features to
install) so we might need to add our LAN "remote site" mirror
explicitely there.
Or am I wrong?

Is there a way to add a new remote site (my local mirror) via the
plugin_customization.ini?
Or is the only way to do so by pre-defining a bookmarks.xml file in
%eclipse%/configuration/org.eclipse.update/

Thanks for your help in advance.

Marion


marion schmid wrote:
> Hello!
>
> In order to restrict updates we want to set up a mirror feature update site
> in our LAN (behind the firewall).
> Using Eclipse 3.1, I set up such an update site
> (http://p105637:1080/IDE-Update-Site/) with one group containing the eclipse
> features , and created (according to eclipse help article "Eclipse Update
> Policy Control") a policy.xml file (which is located in the update site's
> folder, i.e. http://p105637:1080/IDE-Update-Site/policy.xml).
> The policy.xml looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <update-policy>
>
> <url-map pattern="*" url="http://p105637:1080/IDE-Update-Site/" />
>
> </update-policy>
>
> As far as I understood, this means, all connections to the update site URLs
> of all features (pattern="*") - e.g. update.eclipse.org - in my IDE are
> redirected to my local update site.
>
> I tried both versions of referencing this policy.xml file, i.e.
> 1) entered the URL to policy.xml in the "Policy URL" text field on the
> Install/Update preference page
> (proxy settings are NOT enabled, as I don't want our IDE customers to
> download from eclipse.org but from my local update server).
>
> 2) added this line
> org.eclipse.update.core/updatePolicyFile =
> http://p105637:1080/IDE-Update-Site/policy.xml to our primary plug-ins's
> plugin_customization.ini.
>
> What I expected now is, that when I go to "Software Updates" -> "Find and
> install" -> "Search for new features..."
> and hit the "eclipse.org update site" in order to download updates, the
> connection is (by policy.xml) redirected to my local mirror and I can
> download feature updates from it.
>
> Instead, I get the well-known "Network connection problems encountered
> during search" error pop-up with the detailed message
> "Unable to access "http://update.eclipse.org/updates/3.0".".
> Yes, because of the missing proxy - but actually I wanted to access the
> local site and not update.eclipse.org.
>
> How does the redirection mechanism of update policy work?
> Can anyone of you tell me, why the redirection to the local mirror fails?
> Maybe I forgot some setting or I misunderstood the meaning of the update
> policy xml?
>
> fyi: The local update site can be accessed (when proxy settings on
> Install/Update prefs are disabled).
>
> Thank you and best regards,
>
> Marion
>
>
Previous Topic:How to get the cursor position on the java editor
Next Topic:Proposal of multi-autoGathered Plugin.inc.xml files
Goto Forum:
  


Current Time: Fri Apr 19 03:38:22 GMT 2024

Powered by FUDForum. Page generated in 0.03109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top