Difference between revisions of "Bugs"

From AminetWiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
===2006-03-27-0===
 
===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.<br><br>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<br><br>    <pre>for $s (@suffixes) {<br>        $archive = "$root$s" if -f "$root$s";<br>    }</pre><br>As $root + empty_line exists, admin.pl will accept the upload.
+
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.<br><br>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<br><br>    <pre>
 +
for $s (@suffixes) {
 +
        $archive = "$root$s" if -f "$root$s";
 +
    }
 +
</pre>
 +
As $root + empty_line exists, admin.pl will accept the upload.

Revision as of 01:42, 27 March 2006

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.