View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023746 | mantisbt | api soap | public | 2017-12-21 04:41 | 2018-02-06 21:17 |
Reporter | chadmiss | Assigned To | vboctor | ||
Priority | normal | Severity | block | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 2.9.0 | ||||
Target Version | 2.10.1 | Fixed in Version | 2.10.1 | ||
Summary | 0023746: unable to create a bug with customfields via SOAP | ||||
Description | using Mantis 2.9.0, mantisconnect via PHP when creating a bug with mc_issue_add, while the issue data contains customfields, the server side throws an error "Cannot use object of type stdClass as array". After further debugging I find the error triggers in api/soap/mc_issue_api lines 1055 - 1058
When disabling these lines it works the function mci_project_custom_fields_validate() get the parameter $p_custom_fields as object but it is expecting at as array. thus line 674 in api/soap/mc_project_api.php
crashes with the aforementioned error. client side this short script to create a bug is used (Custom-field "Prio" is a simple integer input):
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
sorry for bad formatting of the code chunks :( |
|
Fixed. |
|
Multiple reports, setting to acknowledged. Moreover, this seems to be a regression from 2.8.0 . @vboctor, is this maybe related to your recent work on the REST API? |
|
Using the provided test script, git bisect traces introduction of the bug to MantisBT master 03db938d |
|
@chadmiss @tuanklnew can you please confirm if the fix in the pull request below addresses the issue for you: |
|
Yes, it works. Once again thank for that. |
|
Hi, |
|
It's merged to branch master-2.10, so it will be part of release 2.10.1. Todo: Merge to master to have it also in 2.11.0 |
|