Bugs

From AminetWiki
Revision as of 01:39, 27 March 2006 by Mendoza (talk | contribs)
Jump to navigation Jump to search

2006-03-27-2 due to a bug in admin.pl, we can't accept packages without suffix atm. admin.pl always claims said package does already exist on Aminet.

2006-03-27-1 search.php and package.php will not check a file's date, so they will create download links to mirror sites even if the file is not mirrored yet.

2006-03-27-0 if somebody uploads foo.lha and foo.lha.readme, admin.pl will accept this upload and add it to the database - but obviously, it shouldn't.

This is caused by doc/info/adt/suffixes (which lists all accepted suffixes) having an empty line. When searching for the archive that belongs to a readme, admin.pl will strip ".readme" from foo.lha.readme, store the result in $root and then do

for $s (@suffixes) {
$archive = "$root$s" if -f "$root$s";
}

As $root + empty_line exists, admin.pl will accept the upload.