View Issue Details

IDProjectCategoryView StatusLast Update
0011137mantisbtapi soappublic2010-02-22 14:34
ReporterJoe_Fowler Assigned Torombert  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc2 
Target Version1.2.0Fixed in Version1.2.0 
Summary0011137: Error when trying to retrieve bug via SOAP that is not in a category
Description

Error when trying to retrieve bug via SOAP when that bug is not in a category.

Steps To Reproduce

Make sure the bug you are requesting has no category.

Sample Request:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:man="http://futureware.biz/mantisconnect&quot;>
<soapenv:Header/>
<soapenv:Body>
<man:mc_issue_get soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/&quot;>
<username xsi:type="xsd:string">user</username>
<password xsi:type="xsd:string">pass</password>
<issue_id xsi:type="xsd:integer">3911</issue_id>
</man:mc_issue_get>
</soapenv:Body>
</soapenv:Envelope>

Sample Response:

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/&quot;>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">Server</faultcode>
<faultactor xsi:type="xsd:string"/>
<faultstring xsi:type="xsd:string"><![CDATA[Error Type: APPLICATION ERROR 0001502,
Error Description:
Category not found.,
Stack Trace:
category_api.php L295 trigger_error(<string>'1502', <integer>256)
category_api.php L499 category_get_row(<integer>0)
category_api.php L511 category_get_field(<integer>0, <string>'name')
mc_issue_api.php L71 category_get_name(<integer>0)
UnknownFile L? mc_issue_get(<string>'user', <string>'pass', <integer>3911)
nusoap.php L3997 call_user_func_array(<string>'mc_issue_get', <Array> { [0] => 'user', [1] => 'pass', [2] => 3911 })
nusoap.php L3686 invoke_method()
mantisconnect.php L1390 service(<string>'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:man="http://futureware.biz/mantisconnect&quot;>
<soapenv:Header/>
<soapenv:Body>
<man:mc_issue_get soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/&quot;>
<username xsi:type="xsd:string">user</username>
<password xsi:type="xsd:string">pass</password>
<issue_id xsi:type="xsd:integer">3911</issue_id>
</man:mc_issue_get>
</soapenv:Body>
</soapenv:Envelope>')]]></faultstring>
<detail xsi:type="xsd:string"/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Additional Information

When the bug is in a category, I get a different error which I will report as another bug. Feel free to request additional information.

TagsNo tags attached.

Activities

Joe_Fowler

Joe_Fowler

2009-11-09 05:35

reporter   ~0023622

Forgot to link to my original forum post: http://www.mantisbt.org/forums/viewtopic.php?f=3&amp;t=8600

rombert

rombert

2009-11-09 16:13

reporter   ~0023625

Fixed, thanks for the report.

Related Changesets

MantisBT: master-1.2.x 256ba000

2009-11-09 16:02

rombert


Details Diff
Fixes 0011137: Error when trying to retrieve bug via SOAP that is not in a category

Fixes and add test cases for:

- creating an issue with no category
- updating an issue to have no category
- retrieving an issue with no category

Also fixes:

- getting filter issues
- getting filter issue headers
- getting project issues
- getting project issue headers
Affected Issues
0011137
mod - api/soap/mc_project_api.php Diff File
mod - tests/soap/IssueUpdateTest.php Diff File
mod - api/soap/mc_issue_api.php Diff File
mod - tests/soap/IssueAddTest.php Diff File
mod - tests/soap/SoapBase.php Diff File
mod - api/soap/mc_filter_api.php Diff File

MantisBT: master 222e1e8b

2009-11-09 16:02

rombert


Details Diff
Fixes 0011137: Error when trying to retrieve bug via SOAP that is not in a category

Fixes and add test cases for:

- creating an issue with no category
- updating an issue to have no category
- retrieving an issue with no category

Also fixes:

- getting filter issues
- getting filter issue headers
- getting project issues
- getting project issue headers
Affected Issues
0011137
mod - api/soap/mc_issue_api.php Diff File
mod - tests/soap/IssueUpdateTest.php Diff File
mod - api/soap/mc_project_api.php Diff File
mod - tests/soap/IssueAddTest.php Diff File
mod - tests/soap/SoapBase.php Diff File
mod - api/soap/mc_filter_api.php Diff File