Hello,
I am getting an MCException when I call session.addNote() on an issue. Is
this something I am doing wrong or is it a bug in MantisConnect?
BACKGROUND
I'm new to Mantis and MantisConnect. I am using the Java bindings version
1.1.1.0 with Mantis 1.1.2. I can successfully create an issue and even
create a note using session.newNote(). Despite the exception, the note
appears to be successfully created and associated with the Issue in the
Mantis web GUI. My user has "developer" permissions in the system AND in
the project
I read the error to mean that MantisConnect is looking for a "send_email"
parameter.
Here is the snippet of code. It is part of a test program that simply
creates an Issue with hard-coded values and appends a Note. I wrote it so
that I can understand how to use MantisConnect.
log.debug("issue.id="+id+" created");
INote note= session.newNote("This is a test note");
log.debug("adding note to issue.id="+id+"");
session.addNote(id,note); // EXCEPTION HERE
Here is a chunk of the relevant stack trace:
Exception in thread "main" org.mantisbt.connect.MCException: Error Type:
SYSTEM NOTICE,
Error Description:
Undefined variable: p_send_email,
Stack Trace:
Arraymc_issue_api.php L778 bugnote_add(84, 'This is a test note', '0:00',
false,
0, '', '10')
UnknownFile L? mc_issue_note_add('USERNAME', 'PASSWORD', 84, { ['id'] => 0,
['reporter'] => null, ['text'] => 'This is a test note', ['view_state'] => {
['id'] => 10, ['name'] => null }, ['date_submitted'] => null,
['last_modified'] => null })
nusoap.php L3997 call_user_func_array('mc_issue_note_add', { [0] =>
'USERNAME',
[1] => 'PASSWORD', [2] => 84, [3] => { ['id'] => 0, ['reporter'] => null,
['text'] => 'This is a test note', ['view_state'] => { ['id'] => 10,
['name'] => null
}, ['date_submitted'] => null, ['last_modified'] => null } })
nusoap.php L3686 invoke_method()
Thanks for any suggestions or insight!
-Joe
|