Debian / debiman

debiman generates a static manpage HTML repository out of a Debian archive
Apache License 2.0
195 stars 46 forks source link

Add oldstable/oldoldstable/oldoldoldstable redirects #133

Open pabs3 opened 3 years ago

pabs3 commented 3 years ago

It appears that bullseye is mapped to all of oldstable/oldoldstable/oldoldoldstable, but these should be buster, stretch and jessie. However, codenames are supported and working all the way back to wheezy.

stapelberg commented 3 years ago

Can you add what made you come to that conclusion? A link which redirects or something else?

pabs3 commented 3 years ago

Take any manual page URL, replace the suite/codename with one of the oldstable oldoldstable oldoldoldstable suites and you get a redirect that lands on the bullseye codename.

-- bye, pabs

https://bonedaddy.net/pabs3/

stapelberg commented 3 years ago

I cannot reproduce this.

Take any manual page URL,

Taking https://manpages.debian.org/bullseye/i3-wm/i3.1.en.html for example

replace the suite/codename with one of the oldstable oldoldstable oldoldoldstable suites and you get a redirect that lands on the bullseye codename.

oldstable is buster, oldoldstable is stretch.

% curl -v -o /dev/null -L https://manpages.debian.org/buster/i3-wm/i3.1.en.html shows no redirect and serves the buster (oldstable) version of the page.

% curl -v -o /dev/null -L https://manpages.debian.org/stretch/i3-wm/i3.1.en.html shows no redirect and serves the stretch (oldoldstable) version of the page.

If I use a non-existant suite (perhaps you tried older versions? manpages.d.o currently goes back as far as wheezy only), I see a redirect, which defaults to bullseye (current stable) when it can’t find a page:

% curl -v -o /dev/null -L https://manpages.debian.org/nonexistant/i3-wm/i3.1.en.html

pabs3 commented 3 years ago

Correct:

https://manpages.debian.org/stable/i3-wm/i3.1.en.html -> https://manpages.debian.org/bullseye/i3-wm/i3.1.en.html

Incorrect:

https://manpages.debian.org/oldstable/i3-wm/i3.1.en.html -> https://manpages.debian.org/bullseye/i3-wm/i3.1.en.html

https://manpages.debian.org/oldoldstable/i3-wm/i3.1.en.html -> https://manpages.debian.org/bullseye/i3-wm/i3.1.en.html

https://manpages.debian.org/oldoldoldstable/i3-wm/i3.1.en.html -> https://manpages.debian.org/bullseye/i3-wm/i3.1.en.html

-- bye, pabs

https://bonedaddy.net/pabs3/

stapelberg commented 3 years ago

I have renamed the issue accordingly. These names (oldstable etc.) just don’t have any meaning currently, i.e. no redirects are in place.

pabs3 commented 3 years ago

Ah, that makes more sense now, I guess that is why non-supported suites have the same behaviour.