View Issue Details

IDProjectCategoryView StatusLast Update
0026672mantisbtapi soappublic2020-02-04 14:16
ReporterGunSmoker Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version2.22.1 
Summary0026672: [SOAP API regression 2.22.x]: mc_issue_add fails with "Object of class SoapFault could not be converted to int"
Description

It seems that latest versions of Mantis have a regression issue. Issue confirmed on 2.22.1 (see 0026492 ), 2.22.2 (www.mantishub.com / mantishub.io), 2.23.0 (local Apache). Unfortunately, I don't know what previous version of Mantis does not have this issue.

Code that worked on previous versions of Mantis now fails. Specifically, mc_issue_add fails with "Object of class SoapFault could not be converted to int".

Even if there is a bug in client code, and it sends invalid request - the server MUST respond with a clear failure reason (like "invalid credentials", "required field is not specified", "category not found", etc.), but not with internal crash.

The sample XML request for mc_issue_add is specified in "Additional info" below.

Steps To Reproduce

From Apache logs:

Stack Trace:
IssueAddCommand.php L252 __set(<string>'category_id', <Object><SoapFault> ( [faultstring] => 'Category \'""\' not found.', [faultcode] => 'Client', [faultcodens] => 'http://schemas.xmlsoap.org/soap/envelope/' ))
Command.php L136 validate()
mc_issue_api.php L938 execute()
UnknownFile L? mc_issue_add(<string>'root', <string>'123456', <Object><stdClass> ( [view_state] => <Object><stdClass> ( [id] => 10 ), [project] => <Object><stdClass> ( [id] => 1, [name] => 'Test' ), [category] => '', [priority] => <Object><stdClass> ( [id] => 30 ), [severity] => <Object><stdClass> ( [id] => 50 ), [status] => <Object><stdClass> ( [id] => 10 ), [summary] => 'EEurekaConnectionTestException (Bug 0000C12D; v1.0.0.0)', [version] => '1.0.0.0', [build] => '1.0.0.0', [platform] => 'Windows x86-64', [os] => 'Microsoft Windows 10 (64 bit)', [os_build] => '1909 (10.0.18363.592)', [reproducibility] => <Object><stdClass> ( [id] => 70 ), [projection] => <Object><stdClass> ( [id] => 10 ), [eta] => <Object><stdClass> ( [id] => 10 ), [resolution] => <Object><stdClass> ( [id] => 10 ), [description] => '(Error Message) This is a demo bug report from EurekaLog connection testing.', [steps_to_reproduce] => '(Steps to reproduce) I\'ve clicked on "Test" button on "Sending" tab', [custom_fields] => <array> { [0] => <Object><stdClass> ( [field] => <Object><stdClass> ( [id] => 2 ), [value] => '00000000' ), [1] => <Object><stdClass> ( [field] => <Object><stdClass> ( [id] => 1 ), [value] => '1' ) } ))
mantisconnect.php L89 handle()

Additional Information

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;>
<SOAP-ENV:Body xmlns:NS1="http://futureware.biz/mantisconnect&quot; SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/&quot;>
<NS1:mc_issue_add>
<username xsi:type="xsd:string">alex@eurekalog.com</username>
<password xsi:type="xsd:string">my-Password-Here</password>
<issue xsi:type="tns:IssueData">
<view_state xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">10</id>
</view_state>
<project xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">1</id>
<name xsi:type="xsd:string">MyProject</name>
</project>
<category xsi:type="xsd:string" />
<priority xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">30</id>
</priority>
<severity xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">50</id>
</severity>
<status xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">10</id>
</status>
<summary xsi:type="xsd:string">EEurekaConnectionTestException (Bug 0000A56A; v1.0.0.0)</summary>
<version xsi:type="xsd:string" />
<build xsi:type="xsd:string">1.0.0.0</build>
<platform xsi:type="xsd:string">Windows x86-64</platform>
<os xsi:type="xsd:string">Microsoft Windows 10 (64 bit)</os>
<os_build xsi:type="xsd:string">1909 (10.0.18363.592)</os_build>
<reproducibility xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">70</id>
</reproducibility>
<projection xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">10</id>
</projection>
<eta xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">10</id>
</eta>
<resolution xsi:type="tns:ObjectRef">
<id xsi:type="xsd:long">10</id>
</resolution>
<description xsi:type="xsd:string">(Error Message) This is a demo bug report from EurekaLog connection testing.</description>
<steps_to_reproduce xsi:type="xsd:string">(Steps to reproduce) I've clicked on "Test" button on "Sending" tab</steps_to_reproduce>
</issue>
</NS1:mc_issue_add>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

TagsNo tags attached.

Activities

GunSmoker

GunSmoker

2020-02-04 14:05

reporter   ~0063579

Apache logs are for 2.23.0

GunSmoker

GunSmoker

2020-02-04 14:16

reporter   ~0063580

Just to clarify - this is a server-side problem, it is not about client side.

Apache logs:
[:error] [pid 8132:tid 1292] [client 192.168.1.80:50475] [mantisconnect.php] Error Type: SYSTEM NOTICE,
Error Description: Object of class SoapFault could not be converted to int