bugDcHub: Hub software for Direct Connect - Bugs: bug #6475, plugin receives invalid $SR calls

 
 

bug #6475: plugin receives invalid $SR calls

Submitter:  Dirk Rieger <hhgoth>
Submitted:  Tue 11 Nov 2003 04:43:49 PM UTC
   
 
Category:  Plugins Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  * 0.5.2_CVS
Operating System:  Linux x86 Planned Release:  None
Fixed Release: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Nov 2003 08:54:34 PM UTC, comment #3: 

I implemented another output into the send_evt_to_plugin function inside plugin.c (at the end of the for-loop line 703)
as you may see - the failure's occuring at this point first.

ucmd sr process orig: '$SR nettertest film\Kill Bill SVCD - CD 1 (Deutsch).MPG^E817127696 0/2^Etesthub (62.109.79.115)^Esearch|'
ucmd sr process outgoing  to: 'search', 6
ucmd sr process outgoing msg: '$SR nettertest film\Kill Bill SVCD - CD 1 (Deutsch).MPG^E817127696 0/2^Etesthub (62.109.79.115)|'
send evt to plugin: '\fd'
sr_fnc
varname: 'event' => varval: 'sr'
varname: 'nickname' => varval: 'nettertest'
varname: 'argc' => varval: '1'
varname: '0' => varval: '\fd'

Dirk Rieger <hhgoth>
Mon 17 Nov 2003 06:27:12 PM UTC, comment #2: 

...some logging output: - this may be helpful...

ucmd sr process orig: '$SR TomBombadil musik\Bruce Springsteen\Tracks\CD 2\01 Restless Nights.mp34583907 0/2Deutschland C@fe 2 (62.109.79.115)mawinckie|'
ucmd sr process outgoing  to: 'mawinckie', 9
ucmd sr process outgoing msg: '$SR TomBombadil musik\Bruce Springsteen\Tracks\CD 2\01 Restless Nights.mp34583907 0/2Deutschland C@fe 2 (62.109.79.115)|'
sr_fnc
varname: 'event' => varval: 'sr'
varname: 'nickname' => varval: 'TomBombadil'
varname: 'argc' => varval: '1'
varname: '0' => varval: 'äBŒ'

Dirk Rieger <hhgoth>
Thu 13 Nov 2003 02:38:37 PM UTC, comment #1: 

I checked megabytes of logfiles.
just printing to stdout like your example works, but using

pp=&(g_array_index(param,PLUGIN_PARAM,1));
char *xxx=strdup(pp->varvalue);

sometimes results in really strange strings
however I encountered this problem only in the sr_fnc of the plugin...

Dirk Rieger <hhgoth>
Tue 11 Nov 2003 04:43:49 PM UTC, original submission:  

If got a plugin for the search-result messages from hub
($SR-messages)
sometimes this plugin receives strange messages with wierd Characters - even without the $SR itself.
the messages doesn't seem to be originated by the hub-$SR function - I implemented a logoutput there.

it's the same if the plugin is just printing the event to the log as like in your example

the hub is running without perlscripts

Dirk Rieger <hhgoth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code