aMule Bug Tracker - aMule
View Issue Details
0001654aMuleServerspublic2011-02-20 09:192011-03-09 10:27
vluban 
sturedman 
normalcrashalways
resolvedfixed 
2.2.6 
2.3.12.3.1 
10222
Any
0001654: amuleweb crashes if file that is removed from library or downloads is still being uploaded
See summary
Patch that fixes the issue uploaded and listed here
===Patch===
--- src/webserver/src/php_amule_lib.cpp.orig 2011-02-19 00:08:31.000000000 -0800
+++ src/webserver/src/php_amule_lib.cpp 2011-02-19 00:02:30.000000000 -0800
@@ -906,8 +906,12 @@
             SharedFile::GetContainerInstance()->ReQuery();
             sharedfile = SharedFile::GetContainerInstance()->GetByID(obj->nHash);
         }
+ if ( sharedfile ) {
         wxString short_name(sharedfile->sFileName.Length() > 60 ? (sharedfile->sFileName.Left(60) + (wxT(" ..."))) : sharedfile->sFileName);
         result->str_val = strdup((const char *)unicode2UTF8(short_name));
+ }
+ else
+ result->str_val = strdup((const char *)wxT("removed"));
     } else if ( strcmp(prop_name, "user_name") == 0 ) {
         result->type = PHP_VAL_STRING;
         result->str_val = strdup((const char *)unicode2UTF8(obj->sUserName));
No tags attached.
patch amuleweb.patch (770) 2011-02-20 09:19
https://bugs.amule.org/file_download.php?file_id=337&type=bug
Issue History
2011-02-20 09:19vlubanNew Issue
2011-02-20 09:19vlubanFile Added: amuleweb.patch
2011-02-20 09:19vlubanOperating System => Any
2011-03-09 10:27sturedmanFixed in Revision => 10222
2011-03-09 10:27sturedmanNote Added: 0003539
2011-03-09 10:27sturedmanAssigned To => sturedman
2011-03-09 10:27sturedmanStatusnew => resolved
2011-03-09 10:27sturedmanResolutionopen => fixed
2011-03-09 10:27sturedmanFixed in Version => 2.3.1
2011-03-09 10:27sturedmanTarget Version => 2.3.1

Notes
(0003539)
sturedman   
2011-03-09 10:27   
This has been fixed in SVN for a while. Thank you for reporting anyway!