Hi all,

Am Donnerstag, den 30.01.2020, 14:55 +0000 schrieb Jean-Marc Borer:
> This is bit of a complaint addressed to the NB infra community. When you
> are stuck behind corporate proxy that is very aggressively filtering web
> content, mirrors are a nightmare for you. In my case we need to whitelist
> every single server hosting java binaries otherwise we get empty files. As
> such, it is not viable to declare every single mirror (the company won't
> accept that).
> 
> So my request is: please for NB IDE updates and their core components,
> never ever use mirrors or provide an option to always point to the same
> mirrored site.

I implemented a first variant:

https://github.com/matthiasblaesing/netbeans-tools/tree/proxy-chooser
https://github.com/matthiasblaesing/netbeans-tools/commit/ab41d0dd364a9135675cdf5331c3a0500cb63a46

The result can be seen here:

NetBeans 11.3:

Fetch the base updates.xml:

https://doppel-helix.eu/apache/netbeans/netbeans/11.3/nbms/updates.php

Fetch an updates.xml, that uses the mirror ftp.halifax.rwth-aachen.de
(for a list see http://www.apache.org/mirrors/):

https://doppel-helix.eu/apache/netbeans/netbeans/11.3/nbms/updates.php?mirror=ftp.halifax.rwth-aachen.de

For archived versions, the "mirror" entry is ignored and the source is
moved to archive:

https://doppel-helix.eu/apache/netbeans/netbeans/11.2/nbms/updates.php?mirror=ftp.halifax.rwth-aachen.de


The difference is, that the "distibution" attributes are relative i the
base version and fully qualified in the mirror version.

@all:

Does this looks sane?

@Antonio, Neil: Here is the setup I used to simulate:

$docRoot/apache/netbeans/netbeans/11.3/nbms/updates.xml holds update.xml from 
NB 11.3
$docRoot/apache/netbeans/netbeans/11.2/nbms/updates.xml holds update.xml from 
NB 11.2
$docRoot/apache/proxy-chooser/updates.php holds the script from the above git 
repository, the folder is writeable by the webserver

The .htaccess file reads:

RewriteEngine on
RewriteRule !/apache/netbeans/netbeans/11.2/nbms/updates.php.*$ 
apache/proxy-chooser/updates.php$1 [L]
RewriteRule !/apache/netbeans/netbeans/11.3/nbms/updates.php.*$ 
apache/proxy-chooser/updates.php$1 [L]

Would that work on the netbeans-vm? Do you request alternatives/improvements?

If you have questions, feel free to ask!

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to