thunderbird / addons-server

🕶 addons.thunderbird.net Django app and API, forked from addons.mozilla.org 🎉
https://addons.thunderbird.net
BSD 3-Clause "New" or "Revised" License
18 stars 17 forks source link

ATN does not provide the latest compatiable version hash #218

Closed MelissaAutumn closed 1 year ago

MelissaAutumn commented 1 year ago

ATN/Thunderbird provides the ability to directly download and install add-ons directly from the app. Currently ATN provides the latest compatible version of the add-on. After the add-on has been downloaded and before the installation is started, we compare a hash value to ensure that the add-on we downloaded is indeed the one from ATN. If the hash values are different then we cancel download / installation process.

Unfortunately we currently only pass over the hash of the latest available version and not the latest compatible version. So let's provide the latest compatible version's hash instead.