Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Hi,

On Thu, 21 Mar 2019 at 15:22:20 +0100, William Gathoye wrote:
I just wanted to know whether TDF would be open to make a redirection rule

* from https://download.documentfoundation.org/libreoffice/stable/
* to https://downloadarchive.documentfoundation.org/libreoffice/old/
* *for files that are not found at*
  https://download.documentfoundation.org/libreoffice/stable/ (see it
  like a try_files in terms of NGINX)

That won't work without heavy changes to the download vhost, because the
version on download.documentfoundation.org is X.Y.Z, while the one on
downloadarchive.documentfoundation.org contains a point release number,
and the HTTPd doesn't know a priori which version to map to.

guilhem@download ~$ sha256sum libreoffice/stable/6.1.5*/win/x86_64/LibreOffice_6.1.5*_Win_x64.msi
812e01eaa790c8fa66c91254e9255ec494f22a92e8d18bfbe50486c842884289  
libreoffice/stable/6.1.5/win/x86_64/LibreOffice_6.1.5_Win_x64.msi

guilhem@downloadarchive ~$ sha256sum 
libreoffice/old/6.1.5*/win/x86_64/LibreOffice_6.1.5*_Win_x64.msi
48d4cafceb0ac9d5a3fdbbe0b77bf641027a1860880bf3da4e1ca003301b1ca1  
libreoffice/old/6.1.5.1/win/x86_64/LibreOffice_6.1.5.1_Win_x64.msi
812e01eaa790c8fa66c91254e9255ec494f22a92e8d18bfbe50486c842884289  
libreoffice/old/6.1.5.2/win/x86_64/LibreOffice_6.1.5.2_Win_x64.msi

So today stable/6.1.5 is old/6.1.5.2.  But the suffix isn't constant, so
we would need to maintain a map.  OTOH for fresh the filename contains
the point release, and we have redirections already (from archive to
main not the other way around):

    $ curl -sw"%{http_code} %{redirect_url}\\n" \
        -o/dev/null -r0-1024 
https://downloadarchive.documentfoundation.org/libreoffice/old/6.2.2.1/win/x86_64/LibreOffice_6.2.2.1_Win_x64.msi
 \
        -o/dev/null -r0-1024 
https://downloadarchive.documentfoundation.org/libreoffice/old/6.2.2.2/win/x86_64/LibreOffice_6.2.2.2_Win_x64.msi
    206 
    302 
https://ftp.gwdg.de/pub/tdf/libreoffice/_testing_/6.2.2/win/x86_64/LibreOffice_6.2.2.2_Win_x64.msi

6.2.2.2 is present on the mirror network, so it's served from there.
OTOH 6.2.2.1 is served directly.

If you want specific versions, why not using https://downloadarchive.documentfoundation.org
instead of https://download.documentfoundation.org .  I suppose we could
add some redirects to stable too, to avoid serving still ourselves.

Cheers,
-- 
Guilhem.

-- 
To unsubscribe e-mail to: website+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/website/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.