[Mono-bugs] [Bug 79636][Min] New - wsdl silently ignore unknown options starting with /

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 10 16:31:42 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by stefan.bodewig at freenet.de.

http://bugzilla.ximian.com/show_bug.cgi?id=79636

--- shadow/79636	2006-10-10 16:31:42.000000000 -0400
+++ shadow/79636.tmp.13254	2006-10-10 16:31:42.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 79636
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Sys.Web.Services
+AssignedTo: lluis at ximian.com                            
+ReportedBy: stefan.bodewig at freenet.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: wsdl silently ignore unknown options starting with /
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+if you pass an unknown command line option using / and not - as option
+specifier, wsdl.exe will ignore it as long as a vaid URL or file name
+follows.
+
+
+Steps to reproduce the problem:
+1. run wsdl /foo:bar path/to/an/existing/wsdl.file
+
+Actual Results:
+
+the WSDL file is processed, the option completely ignored
+
+Expected Results:
+
+an error message about an unknown option just as you see it when you use
+-foo:bar instead of /foo:bar
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+If you use /foo:bar after the file name, wsdl.exe barfs because the URL
+looks invalid.
+
+I think the problem is that the default case inside the switch accepts
+the unknown option as a valid file name in Driver.ImportArgument and the
+subsequent file name simply overrides url.
+
+I'd suggest to fail if hasUrl is true and you seem to find yet another
+url, but then again I'm not really familiar with the code.


More information about the mono-bugs mailing list