[Mono-bugs] [Bug 75663][Wis] New - XSLT document('notexistent.xml') causes an exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 29 08:45:44 EDT 2005


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 jaak at jkowalski.net.

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

--- shadow/75663	2005-07-29 08:45:44.000000000 -0400
+++ shadow/75663.tmp.30362	2005-07-29 08:45:44.000000000 -0400
@@ -0,0 +1,79 @@
+Bug#: 75663
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jaak at jkowalski.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XSLT document('notexistent.xml') causes an exception
+
+Description of Problem:
+
+XSLT document() function throws an exception when not-existent file is
+passed. This doesn't happen on .NET 1.1 (empty document is assumed).
+
+Steps to reproduce the problem:
+
+1. Compile the attached source code (mcs xsltbug.cs)
+2. Run (mono xsltbug.exe)
+
+Actual Results:
+
+mono at fw ~$ mono xstlbug.exe
+
+Unhandled Exception: System.Xml.XPath.XPathException: Error during
+evaluation ---> System.IO.FileNotFoundException: Could not find file
+"/mnt/data/home/mono/notexist.xml". : /mnt/data/home/mono/notexist.xml
+in <0x002ad> System.IO.FileStream:.ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync,
+Boolean anonymous)
+in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share)
+in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x000ac> System.Xml.XmlUrlResolver:GetEntity (System.Uri absoluteUri,
+System.String role, System.Type ofObjectToReturn)
+in <0x000b3> Mono.Xml.Xsl.XslTransformProcessor:GetDocument (System.Uri uri)
+in <0x000de> Mono.Xml.Xsl.XsltDocument:GetDocument
+(Mono.Xml.Xsl.XsltCompiledContext xsltContext, System.String arg0,
+System.String baseUri)
+in <0x0029b> Mono.Xml.Xsl.XsltDocument:Evaluate
+(System.Xml.XPath.BaseIterator iter)
+in <0x0003e> System.Xml.XPath.CompiledExpression:Evaluate
+(System.Xml.XPath.BaseIterator iter)--- End of inner exception stack trace ---
+
+in <0x000c4> System.Xml.XPath.CompiledExpression:Evaluate
+(System.Xml.XPath.BaseIterator iter)
+in <0x000ae> System.Xml.XPath.XPathNavigator:Evaluate
+(System.Xml.XPath.XPathExpression expr, System.Xml.XPath.XPathNodeIterator
+context, System.Xml.XmlNamespaceManager ctx)
+in <0x00065> Mono.Xml.Xsl.XslTransformProcessor:Evaluate
+(System.Xml.XPath.XPathExpression expr)
+in <0x00043> Mono.Xml.Xsl.Operations.XslVariableInformation:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor p)
+in <0x0006d> Mono.Xml.Xsl.Operations.XslGlobalVariable:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor p)
+in <0x00379> Mono.Xml.Xsl.XslTransformProcessor:Process
+(System.Xml.XPath.XPathNavigator root, Mono.Xml.Xsl.Outputter outputtter,
+System.Xml.Xsl.XsltArgumentList args, System.Xml.XmlResolver resolver)
+in <0x00080> System.Xml.Xsl.XslTransform:Transform
+(System.Xml.XPath.XPathNavigator input, System.Xml.Xsl.XsltArgumentList
+args, System.IO.TextWriter output, System.Xml.XmlResolver resolver)
+in <0x00034> System.Xml.Xsl.XslTransform:Transform (IXPathNavigable input,
+System.Xml.Xsl.XsltArgumentList args, System.IO.TextWriter output,
+System.Xml.XmlResolver resolver)
+in <0x00139> C1:Main ()
+
+Expected Results:
+
+<?xml version="1.0" encoding="ibm852"?>
+                        xx


More information about the mono-bugs mailing list