View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008602 | mantisbt | api soap | public | 2007-11-23 03:06 | 2007-12-20 01:35 |
Reporter | vboctor | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.0rc2 | ||||
Target Version | 1.1.0 | Fixed in Version | 1.1.0 | ||
Summary | 0008602: Provide a SOAP friendly error handler | ||||
Description | If the Mantis core APIs trigger an error, the default Mantis error handler is used which generates HTML and break SOAP. Currently the SOAP API avoids such errors by duplicating the checks that are done in the APIs. The proper solution is to provide a SOAP friendly error handler so that when the core API trigger an error, the appropriate soap error is returned to the webservice client. The following implementation was contributed by Damien Chevalier: function mciErrorHandler($iErrorCode, $sErrorInfo, $sErrorFile, $iErrorLine) {
} | ||||
Tags | No tags attached. | ||||
I think this is important for 1.1.x branch since in the case where the web service generates HTML error messages, the web service clients break. In 1.1.0, this change will only affect the error checks that are done by the API but are not also done by the web service soap api. In 1.2.0. the redundant checks in the soap apis will be removed and checks will only be handled by the core APIs, which will trigger the error in the right format expected by the web service client. |
|
Fixed for 1.1.0rc4 by svn:4798 |
|