aMule Bug Tracker - aMule
View Issue Details
0001199aMuleExternal Connpublic2007-11-13 00:482007-11-22 15:04
mr_hyde 
Wuischke 
normalminoralways
resolvedfixed 
SVN 
 
Any
0001199: amulecmd: search type is always GLOBAL (CVS 20071112)
The search type assumed by amulecmd is always GLOBAL.
You can simly verify this starting only KAD network (so NOT ed2k) and trying to execute a

search kad something

In this case you obtain only the message

Request failed with the following error: ED2K search can't be done if ED2K is not connected

HOW TO FIX THIS:
Edit file src/TextClient.cpp and change

int CamulecmdApp::ProcessCommand(int CmdId)
{
    wxString args = GetCmdArgs();
    CECPacket *request = 0;
    std::list<CECPacket *> request_list;
    int tmp_int = 0;
    EC_SEARCH_TYPE search_type;

as follows (added initialization for "search_type"):

int CamulecmdApp::ProcessCommand(int CmdId)
{
    wxString args = GetCmdArgs();
    CECPacket *request = 0;
    std::list<CECPacket *> request_list;
    int tmp_int = 0;
    EC_SEARCH_TYPE search_type = EC_SEARCH_KAD; //Mr Hyde: added initilization
No tags attached.
Issue History
2007-11-13 00:48mr_hydeNew Issue
2007-11-13 00:48mr_hydeOperating System => Any
2007-11-13 00:50mr_hydeNote Added: 0002437
2007-11-13 00:57mr_hydeNote Edited: 0002437
2007-11-18 14:32WuischkeNote Added: 0002457
2007-11-18 14:55WuischkeStatusnew => feedback
2007-11-20 19:54mr_hydeNote Added: 0002459
2007-11-22 15:04WuischkeStatusfeedback => resolved
2007-11-22 15:04WuischkeResolutionopen => fixed
2007-11-22 15:04WuischkeAssigned To => Wuischke

Notes
(0002437)
mr_hyde   
2007-11-13 00:50   
(edited on: 2007-11-13 00:57)
Probably this is the same error described in 0001195

edited on: 11-13-07 00:57
(0002457)
Wuischke   
2007-11-18 14:32   
Committed, thank you.

Please test it again with tomorrow's tarball and report back.
(0002459)
mr_hyde   
2007-11-20 19:54   
Seems fixed now (tried with CVS 20071120).
Thanks,
  Mr Hyde