Project

Profile

Help

Bug #4404

Saxon v9.9.1.5 Still Yields "URI has an authority component" Exceptionwhen using UNC paths

Added by Kevon Hayes 8 months ago. Updated 8 months ago.

Status:
AwaitingInfo
Priority:
Normal
Category:
Byte code generation
Sprint/Milestone:
Start date:
2019-12-05
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
Fixed in Maintenance Release:

Description

Good Day Support,

I expected this issue to be addressed in the 9.9.1.5 maintenance release as told by Michael. However I did not see anything addressing this issue in the release notes and the issue is persisted in v9.9.1.5.

RE: https://saxonica.plan.io/issues/4280 and https://saxonica.plan.io/issues/4289

History

#1 Updated by Kevon Hayes 8 months ago

Are there plans to address this?

#2 Updated by Michael Kay 8 months ago

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.

#3 Updated by Kevon Hayes 8 months ago

Sure Michael,

When using the expath file function with a UNC path and exception is thrown. <xsl:variable name="filename" select="concat('file://', '_myFile.xml')"/>

#4 Updated by Kevon Hayes 8 months ago

NOt sure why this didn't show above

<xsl:variable name="filename"
                        select="concat('file://', '_NOC.xml')"/>

#5 Updated by O'Neil Delpratt 8 months ago

  • Status changed from New to In Progress
  • Assignee set to O'Neil Delpratt

Investigating this issue.

#6 Updated by Kevon Hayes 8 months ago

Thanks O'Neil.

#7 Updated by O'Neil Delpratt 8 months ago

Hi Kevon,

We have tried the following query:

file:exists('//server/xmark/filename.xml')

And it returns true.

We also noticed that if we append file: to the filename: file:exists('file://server/xmark/filename.xml') this returns false. This is expected because file:exists expects a filename not a URI. We need to understand what you are doing and how it fails.

#8 Updated by Kevon Hayes 8 months ago

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.

#9 Updated by O'Neil Delpratt 8 months ago

We were running the Query from the command-line. After looking into a simple API example. I can see that file:exists('//server/xmark/filename.xml') returns false.

Looking into this more closely.

#10 Updated by O'Neil Delpratt 8 months ago

Hi Kevon,

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:

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();

Please can you send us a small program which we can run at our end to reproducible the exists function failing in the way you have described.

#11 Updated by O'Neil Delpratt 8 months ago

  • Status changed from In Progress to AwaitingInfo

Please register to edit this issue

Also available in: Atom PDF