#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)
Change History (6)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
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 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 17 years ago by
Cc: | Pepo added; peter.slacik@… removed |
---|
It may be useful to use the version_compare PHP function.