Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#513 closed Defect (fixed)

Unexpected behavior of boinc.berkeley.edu/download_all.php

Reported by: Pepo Owned by:
Priority: Trivial Milestone: Undetermined
Component: Undetermined Version:
Keywords: boinc version download Cc: Pepo

Description

There is a disproportion between what's written on DownloadInfo page and how http://boinc.berkeley.edu/download_all.php really behaves.

For instance the parameter version=x seems to be completely ignored, both min_version=x and max_version=x compare the parameter x with version numbers as strings, not as a set of integers, separated with commas (the way Boinc versions are really numbered).

This way it is not possible to filter the displayed/suppressed version correctly (read: as intended) (because the string comparison is causing such irrational nummeric sequence like 0, 1, 10, 11, ..., 19, 2, 20, 21, ..., 3, 4, 5, 6, 7, 8, 9). Because of this, queries like download_all.php?max_version=5.7.99 or download_all.php?min_version=5.8&dev=1 produce absolutely unexpected results.

Attachments (1)

download_all.php.patch (973 bytes) - added by Christian Beer 16 years ago.
patch for download_all.php

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by Nicolas

It may be useful to use the version_compare PHP function.

Changed 16 years ago by Christian Beer

Attachment: download_all.php.patch added

patch for download_all.php

comment:2 Changed 16 years ago by Christian Beer

The min_version, max_version bug is resolved with the attached patch. I added some explanation to DownloadInfo on how to use version=x.

comment:3 Changed 16 years ago by davea

Resolution: fixed
Status: newclosed

comment:4 Changed 16 years ago by Nicolas

Fixed in [14485].

comment:5 Changed 16 years ago by Pepo

Cc: Pepo added; peter.slacik@… removed
Note: See TracTickets for help on using tickets.