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

Addon id not accepted in download URL #308

Open CendioOssman opened 2 weeks ago

CendioOssman commented 2 weeks ago

Unlike addons.mozilla.org, you cannot deduce the addon download URL from just the addon id on addon.thunderbird.net. That makes it difficult to deploy things in a large organisation.

E.g. uBlock Origin for Firefox has the id uBlock0@raymondhill.net. The download URL for that is then:

https://addons.mozilla.org/firefox/downloads/latest/uBlock0@raymondhill.net/latest.xpi

uBlock Origin for Thunderbird has the same id. I.e. uBlock0@raymondhill.net. But this URL does not work:

https://addons.thunderbird.net/thunderbird/downloads/latest/uBlock0@raymondhill.net/latest.xpi

Instead, you have to use the id ublock-origin for the URL:

https://addons.thunderbird.net/thunderbird/downloads/latest/ublock-origin/latest.xpi

This forces you to manage two different identifiers for each extension.