JustOff / ca-archive

Catalog of classic Firefox add-ons created before WebExtensions apocalypse
https://justoff.github.io
497 stars 55 forks source link

Latest version shown at /versions but not at the primary page for an extension #40

Closed grahamperrin closed 5 years ago

grahamperrin commented 5 years ago

caa:addon/fuzzy-time

– defaults to version 1.9, with a blue Download button and:

Works with Firefox 1.5 - 2.0.0.*

caa:addon/fuzzy-time/versions

– reveals more recent versions, with a green + Install Now button for the latest version.

Environment

Waterfox 56.2.6, FreeBSD-CURRENT.

JustOff commented 5 years ago

There is a bug in the AMO API, due to which all extensions created before March 5, 2007 have wrong date (probably this is the date of migration from the previous version of AMO, for many extensions it is the same or different for a few seconds). I tried to correct this by additional sorting by version, but, unfortunately, this also leads to incorrect results (1.9> 1.12 when compared as text).

While I do not have a good solution, I removed this additional sorting, however, this may lead to other errors when choosing the latest version of add-ons. Here is the test version: ca-archive-1.2.4b1.xpi.

grahamperrin commented 5 years ago

Thanks! I can't get my head around things at the moment but 1.2.4b1 does now work for the example in the opening post.

JustOff commented 5 years ago

This will be completely resolved by #43.

JustOff commented 5 years ago

Resolved by CAA 2.0.1.