Closed jayb-g closed 8 months ago
@jayb-g Thx.... very very weird. I will try to reproduce.
Although now that i try to reproduce it, its not happening. Giving .apk every time. Forgot to mention earlier that file size was always correct even though extensions were different.
How do I share the screen recording ?
Also why fdroid version is so old? v2.4 ? And github apk releases are discontinued after version 3.6.0
Should I create a separate request for that?
How do I share the screen recording ?
@jayb-g you can just drop the file here in your prompt. I tried to reproduce it with Firefox but it always gives .apk.
Transferring to the « operations » repository.
Probably one or several mirrors not serving APK with the appropriate Content-Type
Indeed
https://md.mirrors.hacktegic.com/kiwix-md/release/kiwix-android/kiwix-3.7.1.apk Missing CT
https://mirrors.dotsrc.org/kiwix/release/kiwix-android/kiwix-3.7.1.apk content-type: text/plain
https://ftp.nluug.nl/pub/kiwix/release/kiwix-android/kiwix-3.7.1.apk Content-Type: text/plain; charset=UTF-8
https://ftp.fau.de/kiwix/release/kiwix-android/kiwix-3.7.1.apk Content-Type: application/vnd.android.package-archive
https://mirror.download.kiwix.org/release/kiwix-android/kiwix-3.7.1.apk content-type: application/vnd.android.package-archive
https://mirror-sites-in.mblibrary.info/mirror-sites/download.kiwix.org/release/kiwix-android/kiwix-3.7.1.apk Content-Type: application/vnd.android.package-archive
https://mirror-sites-fr.mblibrary.info/mirror-sites/download.kiwix.org/release/kiwix-android/kiwix-3.7.1.apk Content-Type: application/vnd.android.package-archive
https://mirror-sites-ca.mblibrary.info/mirror-sites/download.kiwix.org/release/kiwix-android/kiwix-3.7.1.apk Content-Type: application/vnd.android.package-archive
I suppose the culprit is ftp.nluug.nl. I'll contact them. @jayb-g @gouri-panda can you test the first two mirrors (those not setting a Content-Type at all) to see how it behaves?
can you test the first two mirrors (those not setting a Content-Type at all) to see how it behaves?
On iOS, download starts properly.
@rgaudin it works with the firefox(mac) but it doesn't work with the firefox(android). The first content type shows zip and the second content type is .txt.
Thank you @gouri-panda ; I am writing to them as well then
For the hacktegic mirror, I added these two lines to Caddyfile (the config):
@apk path *.apk
header @apk Content-Type "application/vnd.android.package-archive"
Apologies for the inconsistency it was introducing.
Still, for Firefox Focus on iOS I get this for all the mirrors.
Works fine with every other browser I tested on iOS (including Firefox). Looks like a FF Focus bug. You shall report it.
@rgaudin all first 3 links return .apk download now on chrome.
2nd link still results into .txt download on firefox
I just fixed it for dotsrc.org:
$ curl --silent --head https://mirrors.dotsrc.org/kiwix/release/kiwix-android/kiwix-3.7.1.apk | grep content-type
content-type: application/vnd.android.package-archive
@AndersTrier Now its downloading apk on FF
Thank you @AndersTrier ; we're all good now.
Describe the bug
The direct download link for kiwix android listed on https://kiwix.org/en/applications as Direct APK sometimes starts download as kiwix-3.7.1.txt sometimes as kiwix-3.7.1.zip and sometimes as kiwix-3.7.1.apk
Expected behavior
Should download latest version as .apk file every time.
Steps to reproduce the behavior:
Environment
Logs I have the screen recorded but don't know how to upload here. It just shows option to link to online media file.