|
From: Robert M. <rob...@gm...> - 2012-08-01 06:48:58
|
On Wed, Aug 1, 2012 at 7:28 AM, brent timothy saner <bre...@gm...> wrote: > On 07/31/12 17:07, Robert Munteanu wrote: > >> looks like i'm just missing the "project" key, right? >> >> >>> Right, the project is mandatory. > > there's definitely something odd going on here. > > can i get some clarification on what sort of values that mantisconnect > is *expecting* for mc_issue_add()? or maybe just an example block so i > know i'm not going crazy here? See for instance our SOAP tests at [1] . There's plenty of examples there. Robert [1]: https://github.com/mantisbt/mantisbt/blob/83068d36a0e75e44bf42f1a92ab2d7cd740b27fe/tests/soap/IssueAddTest.php > > here's what i'm running now (along with a copious amount of testing; > you'll notice that the $ticket() array successfully initializes). > > script: http://pastebin.com/M6xWVc3X > > output: http://pastebin.com/xcyiRYxc > > AND here's the relevant bit from the logs. > > > [Wed Aug 01 00:10:38 2012] [error] [client XX.XX.XX.XX] PHP Fatal > error: Uncaught SoapFault exception: [Server] Error Type: SYSTEM > NOTICE,\nError Description:\nUninitialized string offset: 0,\nStack > Trace:\nmc_issue_api.php L518 > mci_get_project_id(<string>'')\nUnknownFile L? > mc_issue_add(<string>'anonymous', <string>'*SCRUBBED*', <Array> { > ['project'] => '', ['category'] => '1', ['summary'] => 'this is a test > bug', ['description'] => 'livesite testing', > ['additional_information'] => '(submitted via feedback.html)' > })\nnusoap.php L4087 call_user_func_array(<string>'mc_issue_add', > <Array> { [0] => 'anonymous', [1] => '*SCRUBBED*', [2] => <Array> { > ['project'] => '', ['category'] => '1', ['summary'] => 'this is a test > bug', ['description'] => 'livesite testing', > ['additional_information'] => '(submitted via feedback.html)' } > })\nnusoap.php L3718 invoke_method()\nmantisconnect.php L1542 > service(<string>'<?xml version="1.0" > encoding="UTF-8"?>\n<SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:ns1="http://futureware.biz/mantisconnect" > xmlns:xsd="http://www.w3.or in /path/to/mantis/site-anon_report.php on > line 45, referer: http://URI/path/to/mantis/feedback.html > > But it's more or less the exact same error message as the pastebin. > > Should I try upgrading Mantis from 1.2.8 to 1.2.11 (and, I'm assuming, > mantisconnect as a result of that)? I don't recall seeing this sort of > issue as being one of the issues fixed. > > I just for the life of me cannot figure out why it's stripping the > 'project' key. > > > Additionally, I'm also curious how I would integrate custom fields > into ticket creation as well using this method, as it seems > mc_issue_add() wasn't accepting the way I was referencing them. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Mantisbt-soap-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev -- Sent from my (old) computer |