View Issue Details

IDProjectCategoryView StatusLast Update
0012977mantisbtapi soappublic2018-05-20 06:56
ReporterMagicBuzz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.2.5 
Summary0012977: When webservice throw an exception, the "faultstring" element doesn't have a valid namespace.
Description

When the webservice throw an error (wrong login by exemple, or bad value type in a customfield, etc.) the webservice send a malformed XML message.

An element "faultstring" has namespace "".

It looks like the way mantisconnect throw exceptions isn't compatible with .NET.

Additional Information

Here is the MantisConnect response when an exception is thrown :

<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/&quot;>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">Client</faultcode>
<faultactor xsi:type="xsd:string" />
<faultstring xsi:type="xsd:string">Access denied.</faultstring>
<detail xsi:type="xsd:string" />
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Here is a standard .NET execption response :

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at TopMovies.GetMovieAtNumber(Int32 input) in http://server/App_Code/TopMovies.cs:line 40 --- End of inner exception stack trace ---</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>

TagsNo tags attached.

Activities

rombert

rombert

2011-05-04 15:08

reporter   ~0028753

I am having a hard time reproducing this since both Java and PHP implementations work just fine. Please provide a sample implementation in C# ( preferrably running under Mono ) which fails. It can be whichever is most convenient for you, e.g. a minimal SQL dump of the database and a SOAP invocation.

MagicBuzz

MagicBuzz

2011-05-05 11:25

reporter   ~0028756

You can use the small application sample I uploaded on the ticket 0012971
As it connects to this server's webservices, you may not need a sql dump to test.

atrol

atrol

2018-05-20 06:56

developer   ~0059870

Unassigned after a long time of inactivity.

Issue History

Date Modified Username Field Change
2011-05-04 04:10 MagicBuzz New Issue
2011-05-04 15:08 rombert Note Added: 0028753
2011-05-04 15:08 rombert Assigned To => rombert
2011-05-04 15:08 rombert Status new => feedback
2011-05-04 15:08 rombert OS Windows XP Pro =>
2011-05-04 15:08 rombert OS Version 1.2.5 =>
2011-05-04 15:08 rombert Platform Perso =>
2011-05-04 15:08 rombert Description Updated View Revisions
2011-05-04 15:08 rombert Additional Information Updated View Revisions
2011-05-05 11:25 MagicBuzz Note Added: 0028756
2011-05-05 11:25 MagicBuzz Status feedback => assigned
2018-05-20 06:56 atrol Assigned To rombert =>
2018-05-20 06:56 atrol Note Added: 0059870