https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2019-12-05T19:00:43ZSaxonica Developer CommunitySaxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=145892019-12-05T19:00:43ZKevon Hayes
<ul></ul><p>Are there plans to address this?</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=145912019-12-05T21:50:59ZMichael Kaymike@saxonica.com
<ul></ul><p>I have re-read the long and complex thread for the previous bugs. Clearly we need to start again. It appears we fixed the test case that we were using, which must have differed in some material respect from your test case, so I think it would be useful if you can describe precisely what you are doing and how it fails, so that we can produce a test case that resembles your situation more closely. Please be as specific as possible, including giving all relevant software versions.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146292019-12-09T23:12:18ZKevon Hayes
<ul></ul><p>Sure Michael,</p>
<p>When using the expath file function with a UNC path and exception is thrown.
<xsl:variable name="filename"
select="concat('file://', '_myFile.xml')"/></p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146302019-12-09T23:13:16ZKevon Hayes
<ul></ul><p>NOt sure why this didn't show above</p>
<pre><code class="xml syntaxhl" data-language="xml"><span class="nt"><xsl:variable</span> <span class="na">name=</span><span class="s">"filename"</span>
<span class="na">select=</span><span class="s">"concat('file://', '_NOC.xml')"</span><span class="nt">/></span>
</code></pre> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146352019-12-13T11:31:12ZO'Neil Delprattoneil@saxonica.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>O'Neil Delpratt</i></li></ul><p>Investigating this issue.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146372019-12-16T21:51:01ZKevon Hayes
<ul></ul><p>Thanks O'Neil.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146412019-12-17T13:03:15ZO'Neil Delprattoneil@saxonica.com
<ul></ul><p>Hi Kevon,</p>
<p>We have tried the following query:</p>
<pre><code>file:exists('//server/xmark/filename.xml')
</code></pre>
<p>And it returns <strong>true</strong>.</p>
<p>We also noticed that if we append <code>file:</code> to the filename: <code>file:exists('file://server/xmark/filename.xml')</code> this returns <strong>false</strong>. This is expected because file:exists expects a filename not a URI. We need to understand what you are doing and how it fails.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146422019-12-17T14:11:48ZKevon Hayes
<ul></ul><p>Can you supply your code example? If not I can upload a video of the .NET application and show you it always yields the error stated above.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146432019-12-17T15:11:07ZO'Neil Delprattoneil@saxonica.com
<ul></ul><p>We were running the Query from the command-line. After looking into a simple API example. I can see that <code>file:exists('//server/xmark/filename.xml')</code> returns false.</p>
<p>Looking into this more closely.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146442019-12-17T17:14:31ZO'Neil Delprattoneil@saxonica.com
<ul></ul><p>Hi Kevon,</p>
<p>Please ignore comment 9 as I had a typo in my filename. Using the XPath API (should work similar with the XSLT API) the following works for me:</p>
<pre><code>Processor p = new Processor(true);
XPathCompiler c = p.NewXPathCompiler();
c.XPathLanguageVersion = ("3.1");
c.DeclareNamespace("file","http://expath.org/ns/file");
XPathExecutable e = c.Compile("file:exists('//server/xmark/doc.xml')");
XPathSelector s = e.Load();
bool result = s.EffectiveBooleanValue();
</code></pre>
<p>Please can you send us a small program which we can run at our end to reproducible the <code>exists</code> function failing in the way you have described.</p> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=146502019-12-18T15:33:24ZO'Neil Delprattoneil@saxonica.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>AwaitingInfo</i></li></ul> Saxon - Bug #4404: Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC pathshttps://saxonica.plan.io/issues/4404?journal_id=169202020-11-26T10:48:26ZMichael Kaymike@saxonica.com
<ul><li><strong>Status</strong> changed from <i>AwaitingInfo</i> to <i>Closed</i></li></ul><p>Closed as we have received no response to our request for further information.</p>