View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019345 | mantisbt | api soap | public | 2015-02-04 06:16 | 2016-08-15 09:02 |
Reporter | lukas.hubner | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.19 | ||||
Target Version | 1.2.20 | Fixed in Version | 1.2.20 | ||
Summary | 0019345: Error when custom field is specified only by its name (no id provided) | ||||
Description | Using SOAP api from C# (win64, .net 4.5). I thing that /api/soap/mc_custom_field_api.php line 21 should be modified to: if(isset($p_object_ref['id']) && (int) $p_object_ref['id'] != 0 ) { | ||||
Tags | No tags attached. | ||||
Maybe also the "!= 0" in this line should be changed to "> 0" |
|
I confirm the error you reported. While testing, I noted several other occurences of errors/warnings, depending on how the custom field is specified (e.g. id == 0, neither id nor name specified, etc. I don't think it's necessary to change from != to >, if you give it a negative custom field id, the API will simply return APPLICATION ERROR 1300 (custom field not found). |
|
MantisBT: master-1.2.x 663ea17b 2015-02-04 07:29 Details Diff |
SOAP: fix various errors with custom fields This commit fixes several occurences of errors, warnings and PHP notices when updating custom fields via SOAP API. Adding a check to ensure the CF specification includes 'field', either 'name' or 'id' (which must be != 0), and 'value'. If invalid, a specific SOAP fault is returned. Fixes 0019345 |
Affected Issues 0019345 |
|
mod - api/soap/mc_custom_field_api.php | Diff File | ||
mod - api/soap/mc_issue_api.php | Diff File | ||
MantisBT: master a97334ab 2015-02-04 07:29 Details Diff |
SOAP: fix various errors with custom fields This commit fixes several occurences of errors, warnings and PHP notices when updating custom fields via SOAP API. Adding a check to ensure the CF specification includes 'field', either 'name' or 'id' (which must be != 0), and 'value'. If invalid, a specific SOAP fault is returned. Fixes 0019345 |
Affected Issues 0019345 |
|
mod - api/soap/mc_custom_field_api.php | Diff File | ||
mod - api/soap/mc_issue_api.php | Diff File |