On Sat, 17 Feb 2018, sebb wrote:

Date: Sat, 17 Feb 2018 19:45:56 +0100
From: sebb <seb...@gmail.com>
To: general@attic.apache.org
Subject: Re: Redirects for attic project download directories

On 16 February 2018 at 16:53, Henk P. Penning <penn...@uu.nl> wrote:
On Thu, 15 Feb 2018, sebb wrote:

It would be useful to be able to tidy this up.

  Links to mirrors are typically generated by closer.lua ;
  we can make closer.lua attic-aware (says humbedooh :-).
  When closer.lua encounters a target in an atticked project,
  it can redirect to attic.a.o.

Good idea as it will stop further generation of useless URLs.

  This now in test on mirror-vm ; try

    https://mirror-vm.apache.org/dyn/dev_closer.lua/
    https://mirror-vm.apache.org/dyn/dev_closer.lua/beehive/blib/blob

  Aside: dev_closer.lua is also 'dist' and 'archive' aware ; try

    https://mirror-vm.apache.org/dyn/dev_closer.lua/FOO/BAR
    https://mirror-vm.apache.org/dyn/dev_closer.lua/httpd/apache_1.3.0.tar.Z

  Now, suppose we create dist/attic/ghosts/

    https:// dist.apache.org/repos/dist/release/attic/ghosts/

  -- on retirement, infra svn moves dist/GHOST/ to dist/attic/ghosts/ ;
     Pmc Attic can cleanup what was formerly dist/GHOST/

Unless the archive synch job is changed to ignore files under
dist/attic/ghosts this will result in creating copies of the release
artifacts on archive.a.o

  That's a detail ; the point is that /we/ can cleanup ;
  less work for infra ; more control for us.

  -- closer.lua can check the presence of dist/attic/ghosts/PROJ
  -- the RewriteRules idem

  I think this would tidy up /dist/ while keeping the proper Redirects.

It won't keep the redirects on the 3rd party mirrors.
Such URLs may well have been stored elsewhere.

For example [1] points to (e.g.)
http://mirror.org/apache/harmony/milestones/5.0/M15/apache-harmony-5.0-jre-r991518-windows-x86-snapshot.zip

At present such a URL will redirect back to the attic (try it!)
That is the functionality which I think is important to preserve.

  When the new closer.lua is in place, [1] will point directly
  to attic.a.o/projects/harmony.html ;
  Are there any other examples of important pages ?

That is not true for 3rd party mirrors ...

  Any link to a specific file on a specific mirror will stop working
  sooner or later ; mirrors disappear and /dist/ changes.

    LIVE-link  : http://some.mirror.org/.../httpd/some-old-version.gz
    GHOST-link : http://some.mirror.org/.../beehive/some-old-version.gz

  The LIVE-link gives a 404 ; the GHOST-link gives a redirect.
  Why the difference?

  On retirement we remove GHOSTS from committee-info.txt and
  navigation [http://www.apache.org/#projects-list], etc.
  In short, we have pointers to GHOSTs, but not among the living ;
  and that should also be the case for /dist/ (and the mirrors).

[1] http://harmony.apache.org/download.cgi

  Groeten,

  HPP

------------------------------------------------------------   _
Henk P. Penning, ICT-beta                 R Uithof MG-403    _/ \_
Faculty of Science, Utrecht University    T +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL          F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl     \_/

Reply via email to