View Issue Details

IDProjectCategoryView StatusLast Update
0010612mantisbtapi soappublic2009-06-23 15:26
Reporterrombert Assigned Tograngeway  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Target Version1.2.0rc1Fixed in Version1.2.0rc1 
Summary0010612: mc_project_get_issue_headers returns an empty response (this bugtracker)
Description

I can perform mc_projects_get_user_accessible, but using mc_project_get_issue_headers yields an empty response.

Http headers:

HTTP/1.1 200 OK

Date: Mon, 22 Jun 2009 10:18:28 GMT

Server: Apache/2.2.3 (CentOS)

X-Powered-By: PHP/5.1.6

Set-Cookie: PHPSESSID=3cipi2fufr37i4647gj87rpui6; path=/; domain=.mantisbt.org

Cache-Control: private, max-age=10800, pre-check=10800

Last-Modified: Sat, 20 Jun 2009 21:28:51 GMT

Content-Length: 0

Connection: close

Content-Type: text/html; charset=UTF-8

Note the text/html content-type.

TagsNo tags attached.

Activities

rombert

rombert

2009-06-22 06:26

reporter   ~0022213

Trying this version locally with 96814088450f78538645a35e671c2a293f70722a bring the following error:

[Mon Jun 22 13:24:13 2009] [error] [client 127.0.0.1] PHP Fatal error:  Cannot use object of type BugData as array in /srv/www/htdocs/users/robert/mantis12x/api/soap/mc_filter_api.
php on line 159

php -v
PHP 5.2.9 with Suhosin-Patch 0.9.7 (cli) (built: Mar 12 2009 21:16:18)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Please note that 1.2.0a3 works splendidly

rombert

rombert

2009-06-22 06:45

reporter   ~0022214

Sorry, I take that back. It's not working in 1.2.0a3 either.

grangeway

grangeway

2009-06-22 07:58

reporter   ~0022215

I'll take a look into this tonight

Paul

dhx

dhx

2009-06-22 11:19

reporter   ~0022221

Should be an easy fix. It is just a case of filter_api.php using Bug objects instead of old school arrays. The SOAP functionality hasn't yet been updated to use Bug objects... but it is trivial to fix... once you work out how to get SOAP working in the first place :)

vboctor

vboctor

2009-06-22 13:03

manager   ~0022225

I would consider this as an 1.2.0rc1 blocker. We should beef up unit tests as fixing such bugs to make sure we capture future core changes breaking the SOAP API.

@grangeway, do you have unit tests running as part of your continuous integration (cruise control or whatever the tool is) setup?

jreese

jreese

2009-06-23 15:22

reporter   ~0022248

Fixed in git master.