View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011133 | mantisbt | api soap | public | 2009-11-07 19:31 | 2010-02-22 14:34 |
Reporter | worschtsupp | Assigned To | rombert | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
OS | WinXP | ||||
Product Version | 1.2.0rc2 | ||||
Target Version | 1.2.0 | Fixed in Version | 1.2.0 | ||
Summary | 0011133: Mantis Connector: PHP Fatal error: Cannot use object of type BugData as array | ||||
Description | Reproduced with 1.2.0RC2 and git (approx. 6th November 18h): Mantis Connector: PHP Fatal error: Cannot use object of type BugData as array This happens in /api/soap/mc_project_api.php at the following code: $t_issue['resolution'] = $t_issue_data->resolution; $t_issue['attachments_count'] = count( mci_issue_get_attachments( $t_issue_data['id'] ) ); If you comment them out it's ok. | ||||
Additional Information | Think this is related to 0010615 I changed the two lines to So if a bug has notes, I get a value "1", regardless how many notes a bug has. | ||||
Tags | No tags attached. | ||||
Verified with latest 1.2.x trunk. |
|
Fixed, thanks for the report. I verified both the header retrieval and the note count after making the changes you suggested, please check again with a more recent git version. |
|
Thanks, too. Aproved with trunk 1.3dev. I took the wrong trunk by accident, but I assume it to be ok in 1.2.x, too. By the way: when I try to open details double-klciking in MantisConnector-View I always get an Is this a known problem or shall I open a new bug? |
|
Is this MantisConnect ( http://www.futureware.biz/mantisconnect/ ) or the Mylyn-Mantis connector ( https://sourceforge.net/apps/mediawiki/mylyn-mantis/index.php?title=Main_Page ) ? The WSDL has changed ( unfortunate, but it was missing fields ) and the client applications need to regenerate their stub using the new WSDL. Please report this issue to their bug trackers. |
|
It's both, but mylyn-mantis is my "target-solution". Therefor we'll meet again at https://sourceforge.net/apps/mantisbt/mylyn-mantis/view.php?id=96, I suppose :-) |
|
MantisBT: master-1.2.x fc1b513d 2009-11-09 14:53 Details Diff |
Fixes 0011133: mc_project_get_issue_headers does not wholly use BugData Two remaining occurences of array access have been fleshed out in mc_project_get_issue_headers. Two tests have been added, to verify correct behaviour and to validate another reported issue - incorrect note count. |
Affected Issues 0011133 |
|
mod - api/soap/mc_project_api.php | Diff File | ||
mod - tests/soap/FilterTest.php | Diff File | ||
MantisBT: master d4ebd61b 2009-11-09 14:53 Details Diff |
Fixes 0011133: mc_project_get_issue_headers does not wholly use BugData Two remaining occurences of array access have been fleshed out in mc_project_get_issue_headers. Two tests have been added, to verify correct behaviour and to validate another reported issue - incorrect note count. |
Affected Issues 0011133 |
|
mod - api/soap/mc_project_api.php | Diff File | ||
mod - tests/soap/FilterTest.php | Diff File |