View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009121 | mantisbt | api soap | public | 2008-05-02 17:48 | 2009-01-15 11:27 |
| Reporter | urkle | Assigned To | grangeway | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.1.1 | ||||
| Fixed in Version | 1.2.0a3 | ||||
| Summary | 0009121: SOAP API incorrectly exports Relationship types | ||||
| Description | the SOAP api exports the relationships in two passes, source, and destination. But only exposes them to the client as "source", so the client gets incorrect information on all destination bugs if it looks at the "type ID". And since the mantis installation can have custom strings, cannot use the "text" to perform any functionality in a client reliably. (see https://sourceforge.net/tracker/index.php?func=detail&aid=1956462&group_id=189858&atid=931013 ) the fix. add a relationship_get_complementary_type call to mci_issue_get_relationships for the "dest" pass. | ||||
| Tags | patch | ||||
| Attached Files | mc_soap_patch.diff (838 bytes)
Index: mc_issue_api.php
===================================================================
--- mc_issue_api.php (revision 5225)
+++ mc_issue_api.php (working copy)
@@ -234,7 +234,7 @@
$t_relationship = array();
$t_relationship['id'] = $t_relship_row->id;
$t_reltype = array();
- $t_reltype['id'] = $t_relship_row->type;
+ $t_reltype['id'] = relationship_get_complementary_type($t_relship_row->type);
$t_reltype['name'] = relationship_get_description_dest_side($t_relship_row->type);
$t_relationship['type'] = $t_reltype;
$t_relationship['target_id'] = $t_relship_row->src_bug_id; | ||||
|
Hello, I'm not really that familiar with the SOAP API myself, but would I be correct in thinking we should expose Paul |
|
|
probably the complementary information should be given in a separate "bug relationship" enum fetch instead of with each issue. |
|
|
As far as I can see this is quite a small change and renders task relations unusable with the SOAP api and has a patch attached. Any chance of considering this for inclusion in the next stable version? I would hope that it would be included in the 1.2 stream anyway. |
|
|
Hello, I've fixed this issue in my local git checkout - this will be pushed to the central git.mantisbt.org server shortly. THanks |
|
|
@grangeway: Has the changeset been pushed yet to the git.mantisbt.org ? If so , which one is it? Thanks, Robert |
|