Ticket #513 (closed Defect: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: Pepo Assigned to:
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

download_all.php.patch (1.0 kB) - added by ChristianB on 12/23/07 11:09:09.
patch for download_all.php

Change History

12/11/07 08:11:27 changed by Nicolas

It may be useful to use the version_compare PHP function.

12/23/07 11:09:09 changed by ChristianB

  • attachment download_all.php.patch added.

patch for download_all.php

12/23/07 11:11:29 changed by ChristianB

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

01/07/08 15:27:20 changed by davea

  • status changed from new to closed.
  • resolution set to fixed.

01/07/08 15:35:57 changed by Nicolas

Fixed in [14485].

07/24/08 09:23:27 changed by Pepo

  • cc changed from peter.slacik@tatramed.sk to Pepo.

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.