[Mono-bugs] [Bug 443095] New: mono wsdl.exe blows up with IndexOutOfRangeException.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 7 20:52:05 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=443095


           Summary: mono wsdl.exe blows up with IndexOutOfRangeException.
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: brian at sooloos.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Created an attachment (id=250836)
 --> (https://bugzilla.novell.com/attachment.cgi?id=250836)
schema that demonstrates the problem.

Description of Problem:

Mono-provided wsdl.exe code generator throws exception on seemingly fine
schema. Microsoft wsdl.exe. This is in mono 2.0.1, built from source on ubuntu
with gcc 2.4.2. I've attached a simple schema (<50 lines of xml) that
demonstrates the problem.

Steps to reproduce the problem:
1. Download attached schema
2. Run:

$ wsdl <name of downloaded file>

where 'wsdl' is the mono-installed shell script that launches wsdl.exe.

Actual Results:

wsdl.exe crashes with the following:

Web Services Description Language Utility
Mono Framework v2.0.50727.42
Error: Array index is out of range.
Stack:
   at System.Web.Services.Description.BasicProfileChecker.CheckR2305
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.Operation value) [0x00000] 
  at System.Web.Services.Description.BasicProfileChecker.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.Operation value) [0x00000] 
  at System.Web.Services.Description.WebServicesInteroperability.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.ConformanceChecker checker,
System.Web.Services.Description.ServiceDescription sd) [0x00000] 
  at System.Web.Services.Description.WebServicesInteroperability.Check
(WsiProfiles claims, System.Web.Services.Description.ConformanceCheckContext
ctx, IEnumerable documents) [0x00000] 
  at
System.Web.Services.Description.WebServicesInteroperability.CheckConformance
(WsiProfiles claims, System.Web.Services.Description.WebReference webReference,
System.Web.Services.Description.BasicProfileViolationCollection violations)
[0x00000] 
  at Mono.WebServices.Driver.GenerateCode
(System.Web.Services.Description.WebReferenceCollection references,
System.CodeDom.CodeCompileUnit codeUnit) [0x00000] 
  at Mono.WebServices.Driver.Run (System.String[] args) [0x00000] 


Expected Results:

wsdl.exe should generate code for the provided schema OR provide a descriptive
message of what's wrong. Because microsoft's tools are accepting this schema
without warnings or errors, I assume that it's ok and that mono should just be
succeeding here, but I could be wrong. Regardless, letting an
IndexOutOfRangeException bubble out to the user is not the right answer.

How often does this happen? 

every time.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list