Project

Profile

Help

Support #6312 ยป _ - 2024-01-04T13_30_27Z.eml

Gerben Abbink, 2024-01-04 14:30

 
X-He-Spam-Score: -2.2
Return-Path: <gerben.abbink@gmail.com>
Delivered-To: dropbox@plan.io
Received: from m.launch.gmbh ([127.0.0.1])
by m.launch.gmbh with LMTP
id S0S3KuOylmXt8wIAJzdhvw
(envelope-from <gerben.abbink@gmail.com>)
for <dropbox@plan.io>; Thu, 04 Jan 2024 14:30:11 +0100
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on m.launch.gmbh
X-Spam-Level:
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,HTML_MESSAGE,
RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Report:
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
* [score: 0.0000]
* -0.1 DMARC_PASS DMARC check passed
* -0.1 SPF_PASS SPF check passed
* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
* provider
* [gerben.abbink[at]gmail.com]
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
* -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
* [209.85.208.43 listed in wl.mailspike.net]
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
* valid
* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
* author's domain
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at
* https://www.dnswl.org/, no trust
* [209.85.208.43 listed in list.dnswl.org]
* -0.0 T_SCC_BODY_TEXT_LINE No description available.
X-Spam-Score: -2.2
Authentication-Results: m.launch.gmbh; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: m.launch.gmbh; spf=pass smtp.mailfrom=gmail.com
Authentication-Results: m.launch.gmbh;
dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=X1fRpCn7;
dkim-atps=neutral
Envelope-to: inbox+saxonica+f38e+saxon@plan.io
Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
(No client certificate requested)
by m.launch.gmbh (Postfix) with ESMTPS id 90C70162681
for <inbox+saxonica+f38e+saxon@plan.io>; Thu, 4 Jan 2024 14:30:11 +0100 (CET)
Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-554fe147ddeso565860a12.3
for <inbox+saxonica+f38e+saxon@plan.io>; Thu, 04 Jan 2024 05:30:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1704375011; x=1704979811; darn=plan.io;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=3T4m98pnk2oGgDC9hL2VwsX2p2gWNagJbAVYgAv3Ino=;
b=X1fRpCn7VA3WQFS83gGADC/iylD0yEur9FR6825uEiI1lcxOWXQupuW1XNCbtG36II
p4ftLCpBwLhTt/bFjW3aC/P8cVyTHUbNBk/wE3zVfuQEvPmCwQS4dglagb37v8Ig4YtG
Kz0Bk8m9b4GgpM3M/zQDfzTtDVtbYPxb5VImwn+oouXoufF01JRcLqciOD02HRo4czCT
rCjUS/sWRuh9aNWA+SezTimKC2WN9uDFvuWB/84gR+EalYGAkdZJBKHOdbkPPJqAWxaw
dSj3rQuq2ZzORLC2smIr7zb1cEEQ9bhFZEezZuhcfKivhSJuOhgcEd330e8DGG+bERDR
IybQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1704375011; x=1704979811;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=3T4m98pnk2oGgDC9hL2VwsX2p2gWNagJbAVYgAv3Ino=;
b=LNXsTADOa2lpCWySvMVYnsPcuDc1HuEsA4ABdefBXtkH4hbNBaIS7NbunBwzkf5uYl
enrEqRLL+7Eijcj0ljwgQJy5kIRHPVNygMj80vWcGL+suyEAuXZgMLZqdmxfQ170v0PM
PZ8oj0Ymyn8UlTGDVXbqG3zijUX/utNcHneeraTLx35j+yUA1mdU8cvLq/uTMw2iMxRo
8uBsE8cf2nKTq3jxFPdr1Fhh7GaD8xs94h1QygM6alVg20eZyj6rSvTYYgZxKLfNHW79
6l9cuOjiyfnxPHzMEF7DVnXptkSrJJuIeSYvn4id0s+EuFUq0iJIh53LMHpey/yNL50R
IKuQ==
X-Gm-Message-State: AOJu0YwmWUjLRwmZpk/f13fqqpr/bc5b8g76xh5HrjfWuf4aIl2mjJn9
BUqOdky713QuTvuSL31RhV+EEY9hQGyLMG5DeHVmMiVVBsI=
X-Google-Smtp-Source: AGHT+IHcVPJ34spQ+Or9ZlSu4sBi3uwkRT3roLsGPnWJb48bn72CrbDhiE5gs4fXVMceJVvqcQcd3ikxFs/7LPpWPp4=
X-Received: by 2002:a17:906:2656:b0:a27:ef77:fa6a with SMTP id
i22-20020a170906265600b00a27ef77fa6amr141218ejc.294.1704375010729; Thu, 04
Jan 2024 05:30:10 -0800 (PST)
MIME-Version: 1.0
References: <redmine.issue-6312.20240103153726.325@plan.io> <redmine.journal-25507.20240104131021.325@plan.io>
In-Reply-To: <redmine.journal-25507.20240104131021.325@plan.io>
From: Gerben Abbink <gerben.abbink@gmail.com>
Date: Thu, 4 Jan 2024 14:29:59 +0100
Message-ID: <CALOFD2XS1GxKq=ijwHBWE43vALtubi85uMe7SM85r0Ta+e_x_A@mail.gmail.com>
Subject: Re: [Saxon - Bug #6312] URIResolver.resolve() is called with "file:/"
instead of "file:///"
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon@plan.io>
Content-Type: multipart/alternative; boundary="000000000000142113060e1ebb7b"

--000000000000142113060e1ebb7b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

//
https://www.saxonica.com/documentation12/#!javadoc/net.sf.saxon.s9api/XsltC=
ompiler

XsltCompiler compiler =3D processor.newXsltCompiler();
compiler.setResourceResolver(new
ResourceResolverWrappingURIResolver(resolver));

and

Xslt30Transformer transformer =3D executable.load30();
transformer.setResourceResolver(new
ResourceResolverWrappingURIResolver(resolver));



On Thu, Jan 4, 2024 at 2:10=E2=80=AFPM Saxonica Developer Community <
notifications@plan.io> wrote:

> --- In your reply, please do not write below this line ---
> Issue #6312 <https://saxonica.plan.io/issues/6312?pn=3D1#change-25507> ha=
s
> been updated by Michael Kay.
> ------------------------------
>
>
> Like almost everything else concerned with the file URI schema, the
> Wikipedia article is thoroughly confused, and rarely makes it clear which
> specification it is referring to. For example the sentence "These are
> called "legacy" file URLs as opposed to "healthy" file URLs." links only =
to
> an anonymous personal blog entry dating back to 1997, and which is now
> available only on the Wayback machine.
>
> Moreover, I don't quite see how you justify your claim "According to
> Wikipedia "file://" and "file:///" are allowed under Windows, "file:/" is
> only allowed under UNIX." from the Wikipedia article (let alone from the
> definitive RFCs). In practice it's not what "Windows" allows that matters=
,
> it's what specific software running under Windows allows, for example the
> Java or .NET class libraries.
>
> You don't make it clear what API code you are using to run the
> transformation. This is critical.
> ------------------------------
> Bug #6312: URIResolver.resolve() is called with "file:/" instead of
> "file:///" <https://saxonica.plan.io/issues/6312?pn=3D1#change-25507> ope=
n
>
> - *Author: *Gerben Abbink
> - *Status: *New
> - *Priority: *Low
> - *Start date: *2024-01-03
>
> My registered URIResolver is sometimes called with "file:/" instead of
> "file:///". This is not allowed under Windows.
>
> For example:
>
> .../xslt30-test-master/report/report-keywords.xsl
>
> I guess there's a problem in net/sf/saxon/om/DocumentKey.java.
> Files report-keywords.xsl
> <https://saxonica.plan.io/attachments/download/64973/report-keywords.xsl>
> (2.85 KB)
> ------------------------------
>
> You have received this notification because you have either subscribed to
> or are involved in a project on Saxonica Developer Community site. To
> change your notification preferences, please click here:
> https://saxonica.plan.io/my/account?tour=3Dmail_preferences
>
> This notification was cheerfully delivered by <https://plan.io/>
> [image: Planio] <https://plan.io/>
>

--000000000000142113060e1ebb7b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div>// <a href=3D"https=
://www.saxonica.com/documentation12/#!javadoc/net.sf.saxon.s9api/XsltCompil=
er">https://www.saxonica.com/documentation12/#!javadoc/net.sf.saxon.s9api/X=
sltCompiler</a>=C2=A0</div><div>XsltCompiler compiler =3D processor.newXslt=
Compiler();</div><div>compiler.setResourceResolver(new ResourceResolverWrap=
pingURIResolver(resolver));</div><div><br></div><div>and</div><div><br></di=
v><div><div>Xslt30Transformer transformer =3D executable.load30();</div><di=
v>transformer.setResourceResolver(new ResourceResolverWrappingURIResolver(r=
esolver));</div></div><div><br></div><div><br></div></div></div></div><br><=
div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Jan=
4, 2024 at 2:10=E2=80=AFPM Saxonica Developer Community &lt;<a href=3D"mai=
lto:notifications@plan.io">notifications@plan.io</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><div class=3D"msg1244822867=
339444148"><u></u>







<div style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif;fo=
nt-size:14px;line-height:1.4em;color:rgb(51,52,52)">
<table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" style=3D"border-c=
ollapse:collapse;border-spacing:0px;margin-bottom:0px;width:100%;border:non=
e;padding:0px">
<tbody><tr><td style=3D"text-align:center;width:100%;font-family:MarketWeb,=
Helvetica,Arial,sans-serif;font-size:0.8em;color:rgb(215,215,215);border:no=
ne;padding:0px"><p>--- In your reply, please do not write below this line -=
--</p></td></tr>
<tr><td style=3D"border:none;padding:0px">Issue <a href=3D"https://saxonica=
.plan.io/issues/6312?pn=3D1#change-25507" style=3D"color:rgb(0,136,183)" ta=
rget=3D"_blank">#6312</a> has been updated by Michael Kay.
<hr style=3D"width:100%;height:1px;background:rgb(204,204,204);border:0px;m=
argin:1.2em 0px">

<ul style=3D"color:rgb(149,149,149);margin-bottom:1.5em">
</ul>

<p>Like almost everything else concerned with the file URI schema, the Wiki=
pedia article is thoroughly confused, and rarely makes it clear which speci=
fication it is referring to. For example the sentence &quot;These are calle=
d &quot;legacy&quot; file URLs as opposed to &quot;healthy&quot; file URLs.=
&quot; links only to an anonymous personal blog entry dating back to 1997, =
and which is now available only on the Wayback machine.</p>
<p>Moreover, I don&#39;t quite see how you justify your claim &quot;Accordi=
ng to Wikipedia &quot;file://&quot; and &quot;file:///&quot; are allowed un=
der Windows, &quot;file:/&quot; is only allowed under UNIX.&quot; from the =
Wikipedia article (let alone from the definitive RFCs). In practice it&#39;=
s not what &quot;Windows&quot; allows that matters, it&#39;s what specific =
software running under Windows allows, for example the Java or .NET class l=
ibraries.</p>
<p>You don&#39;t make it clear what API code you are using to run the trans=
formation. This is critical.</p>
<hr style=3D"width:100%;height:1px;background:rgb(204,204,204);border:0px;m=
argin:1.2em 0px">
<h1 style=3D"font-family:ProximaNova-Bold,Helvetica,Arial,sans-serif;font-w=
eight:normal;margin:0px;font-size:1.3em;line-height:1.4em">
<a href=3D"https://saxonica.plan.io/issues/6312?pn=3D1#change-25507" styl=
e=3D"color:rgb(0,136,183);text-decoration:none" target=3D"_blank">Bug #6312=
: URIResolver.resolve() is called with &quot;file:/&quot; instead of &quot;=
file:///&quot;</a>
<span style=3D"font-weight:bold;font-size:10px;padding:1px 3px;margin-rig=
ht:2px;margin-left:2px;border-radius:2px;text-transform:uppercase;text-deco=
ration:none;color:rgb(32,93,134);border:1px solid rgb(32,93,134)">open</spa=
n>
</h1>

<ul style=3D"color:rgb(149,149,149);margin-bottom:1.5em"><li><strong>Author=
: </strong>Gerben Abbink</li>
<li><strong>Status: </strong>New</li>
<li><strong>Priority: </strong>Low</li>
<li><strong>Start date: </strong>2024-01-03</li></ul>

<p>My registered URIResolver is sometimes called with &quot;file:/&quot; in=
stead of &quot;file:///&quot;. This is not allowed under Windows.</p>
<p>For example:</p>
<p>.../xslt30-test-master/report/report-keywords.xsl</p>
<p>I guess there&#39;s a problem in net/sf/saxon/om/DocumentKey.java.</p>

<fieldset style=3D"border-style:solid;border-color:rgb(204,204,204);borde=
r-width:1px 0px 0px"><legend>Files</legend>
<a href=3D"https://saxonica.plan.io/attachments/download/64973/report-k=
eywords.xsl" style=3D"color:rgb(0,136,183)" target=3D"_blank">report-keywor=
ds.xsl</a>
(2.85 KB)<br>
</fieldset>

<div><div></div></div>

</td></tr>
<tr><td style=3D"font-size:0.8em;width:100%;border:none;padding:0px"><hr st=
yle=3D"width:100%;height:1px;background:rgb(204,204,204);border:0px;margin:=
1.2em 0px"><p>You have received this notification because you have either s=
ubscribed to or are involved in a project on Saxonica Developer Community s=
ite.
To change your notification preferences, please click here: <a href=3D"http=
s://saxonica.plan.io/my/account?tour=3Dmail_preferences" style=3D"color:rgb=
(0,136,183)" target=3D"_blank">https://saxonica.plan.io/my/account?tour=3Dm=
ail_preferences</a></p></td></tr>
<tr><td style=3D"text-align:center;width:100%;font-family:MarketWeb,Helveti=
ca,Arial,sans-serif;font-size:1.2em;color:rgb(215,215,215);border:none;padd=
ing:0px"><br><div><a href=3D"https://plan.io/" style=3D"color:rgb(215,215,2=
15);text-decoration:none" target=3D"_blank">This notification was cheerfull=
y delivered by</a></div></td></tr>
<tr><td style=3D"text-align:center;width:100%;border:none;padding:0px"><a h=
ref=3D"https://plan.io/" title=3D"Planio" style=3D"color:rgb(0,136,183)" ta=
rget=3D"_blank"><img src=3D"https://assets.plan.io/images/planio_logo_gray_=
204x50.png" height=3D"25" width=3D"102" border=3D"0" alt=3D"Planio" style=
=3D"vertical-align: middle; border: none;"></a></td></tr>
</tbody></table>
</div>

</div></blockquote></div>

--000000000000142113060e1ebb7b--
    (1-1/1)