Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Mantis integration fail


#1

Hello! When i try to push new bug in Mantis(after i push Submit), i have Error:

[code][ERROR] 2011-11-28 12:46:39 [586ms]: [SoapFault] Error Type: SYSTEM NOTICE,
Error Description:
Undefined variable: v_status,
Stack Trace:
ArrayUnknownFile L? mc_issue_add(‘admin’, ‘***’, { [‘project’] => { [‘id’] => 1 }, [‘category’] => ‘NewCategory’, [‘priority’] => { [‘id’] => 20 }, [‘severity’] => { [‘id’] => 30 }, [‘summary’] => ‘Failed test: Testing transfer of foreign currency accounting company’, [‘reproducibility’] => { [‘id’] => 10 }, [‘description’] => ‘Test: Testing transfer of foreign currency accounting company
http://pekhov.com/testrail/index.php?/tests/view/4’ })
nusoap.php L3997 call_user_func_array(‘mc_issue_add’, { [0] => ‘admin’, [1] => ‘***’, [2] => { [‘project’] => { [‘id’] => 1 }, [‘category’] => ‘NewCategory’, [‘priority’] => { [‘id’] => 20 }, [‘severity’] => { [‘id’] => 30 }, [‘summary’] => ‘Failed test: Testing transfer of foreign currency accounting company’, [‘reproducibility’] => { [‘id’] => 10 }, [‘description’] => ‘Test: Testing transfer of foreign currency accounting company
http://pekhov.com/testrail/index.php?/tests/view/4’ } })
nusoap.php L3686 invoke_method()
mantisconnect.php L1418 service(’<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1=“http://futureware.biz/mantisconnect” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” SOAP-ENV:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”>SOAP-ENV:Bodyns1:mc_issue_addadmin***1NewCategory2030

Failed test: Testing transfer of foreign currency accounting company10Test: Testing transfer of foreign currency accounting company
http://pekhov.com/testrail/index.php?/tests/view/4</ns1:mc_issue_add></SOAP-ENV:Body></SOAP-ENV:Envelope>
’)


Details:
File: /home/youwrite/pekhov.com/docs/testrail/app/plugins/defects/Mantis.php
Line: 449
Status Code: 500
Host: pekhov.com
Uri: /testrail/index.php?/defects/ajax_push (POST)

PHP: 5.2.10
Server: FreeBSD 8.1-RELEASE-p5 FreeBSD 8.1-RELEASE-p5 #10: Fri Sep 30 14:45:56 MSK 2011 root@web22.nic.ru:/usr/obj/usr/src/sys/HNIC-IBM pl#27 amd64
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

status_id: 5
assignedto:
comment:
attachments:
version:
elapsed:
defects:
test_ids: 4
_token: 2be829f9960d2a3458b81465b31e8ce6
defect_summary: Failed test: Testing transfer of foreign currency accounting company
defect_project: 1
defect_category: NewCategory
defect_reproducibility: 10
defect_severity: 30
defect_priority: 20
defect_description: Test: Testing transfer of foreign currency accounting company
http://pekhov.com/testrail/index.php?/tests/view/4
field: project

Trace:
at SoapClient->__soapCall (Mantis.php:449)
at Mantis_api->_send_command (Mantis.php:650)
at Mantis_api->add_issue (Mantis.php:301)
at Mantis_defect_plugin->push (defects.php:650)
at Defects_controller->ajax_push (controller.php:110)
at Controller->_invoke_web (controller.php:68)
at Controller->_invoke (gizmo.php:108)
at require_once (index.php:106)[/code]

Im correctly configure settings to connect and mantis user account. I have not found variable v_status in testrail or mantis source code. Possibly this error is due to the version Mantis
P.S. TestRail 2.4.1, Mantis 1.1.7


#2

Hello,

Thanks for your posting. We’ve seen this issue a few times from other customers and updating Mantis indeed solved this problem (I believe to 1.2.7/1.2.8). Please note that the Mantis user for TestRail may also need administrator access to add bugs. It may be a good idea to test the upgrade to the new Mantis version with a staging/test installation first before applying the new version to your production environment (I’m not sure how robust the Mantis upgrade process is).

I hope this helps,
Tobias


#3

Thanks, are you planning to add support for older versions of Mantis?


#4

This error message is returned from Mantis via the SOAP API and is not an error in our plugin. I’m pretty sure that this is a Mantis related bug that is not available in newer Mantis versions. There may be a workaround to get it working with older versions of Mantis but we recommend updating Mantis to the current stable, if at all possible.

Regards,
Tobias