Project

Profile

Help

Bug #5673 ยป Re_ [SaxonJS - Bug #5673] ixsl_set-property and URLs in property names - 2022-09-08T10_35_00Z.eml

Norm Tovey-Walsh, 2022-09-08 12:35

 
X-He-Spam-Score: -1.8
Return-Path: <norm@saxonica.com>
Delivered-To: dropbox@plan.io
Received: from m.launch.gmbh ([127.0.0.1])
by m.launch.gmbh with LMTP id CEVRIBnFGWNVfAAAJzdhvw
for <dropbox@plan.io>; Thu, 08 Sep 2022 12:34:01 +0200
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on m.launch.gmbh
X-Spam-Level:
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED,
DKIM_SIGNED,DKIM_VALID,DMARC_NONE,SPF_HELO_NONE,SPF_NONE,
SPF_NONE_IGNORE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham
autolearn_force=no version=3.4.2
X-Spam-Report:
* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
* blocked. See
* http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
* for more information.
* [URIs: plan.io]
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
* [score: 0.0000]
* 0.1 DMARC_NONE DMARC record not found
* 2.0 SPF_NONE SPF record not found
* -2.0 SPF_NONE_IGNORE m.launch.gmbh does not consider absent SPF
* records
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
* valid
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
* -0.0 T_SCC_BODY_TEXT_LINE No description available.
* -0.0 DKIMWL_WL_MED DKIMwl.org - Medium trust sender
X-Spam-Score: -1.8
Envelope-to: inbox+saxonica+f38e+saxon-js@plan.io
Authentication-Results: m.launch.gmbh; dmarc=none (p=none dis=none) header.from=saxonica.com
Authentication-Results: m.launch.gmbh; spf=none smtp.mailfrom=norm@saxonica.com
Authentication-Results: m.launch.gmbh;
dkim=pass (2048-bit key; unprotected) header.d=outbound.mailhop.org header.i=@outbound.mailhop.org header.b="OS0fkxvp";
dkim-atps=neutral
Received: from outbound5g.eu.mailhop.org (outbound5g.eu.mailhop.org [18.156.67.42])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(No client certificate requested)
by m.launch.gmbh (Postfix) with ESMTPS id CCCF487A6A
for <inbox+saxonica+f38e+saxon-js@plan.io>; Thu, 8 Sep 2022 12:33:59 +0200 (CEST)
ARC-Seal: i=1; a=rsa-sha256; t=1662633240; cv=none;
d=outbound.mailhop.org; s=arc-outbound20181012;
b=ZGztDcIZHcdG4QKo+LdJ7Xn4Y3HXm5aFHzSe/RJmgaTpkgE9LkzoplTSY+KnUPMFeJLBD5ZufvkS5
WxIHyxxs9+kPJ1cME8glITpmgdxPlQFwUoOFyK9XnltXRSUA2YS/DZHzOzQSiONDY7vnNqwutUI8kP
pRYE5puWB4R15wXDCAAzUh8TUj7J8U991YPZ+4OthT+SgLlcYvDJGuRQzxjxcIawr2G5IqgHK0bJqY
yHTEyDa/dUbp251Pnnl5MCxbhXtYHQy6a9SUGdXCo4atUfnU4M+ct8xuRISK7CGFx3vUkbAsehabsu
2pr0ynKaRJ4hHyWkcjUlqsP/NBqR5Tw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=outbound.mailhop.org; s=arc-outbound20181012;
h=content-type:mime-version:message-id:in-reply-to:date:subject:to:from:
references:dkim-signature:from;
bh=PLkH9RCwD+CwpNistgKz+DirOYXpLSMIdJ7Py88+sPY=;
b=Ic3IEOTv2i+wh/LThjsQDBXzV5pzShR+2WTE/X50QvEC25PAcsWRWkJHFMaDjApanAp3AOtAQNPCK
89QsCDUoGj6u+k0ij6erWshf/Nn7PlIiLyPS68EuAsClKFN3svgMWZLTiWY3RNXh12YfI37ONatp78
YMKwkczKqWUyIJV14/J/ZZHNYSoKLWcBlT1EZ16CzF6xkory7e6vmu6XhsitblOc9g8TKKFcFgDVmI
s9amgm7WvGAg+lJIIb6bILXQBjWqJY0Z8xeO+DbEU94ytKLZRElA/5Byu/vshcrTxAJCB4qSahXsra
BqTcxWD2UIe6ZHgxG3AOqrzZXgAYMvw==
ARC-Authentication-Results: i=1; outbound2.eu.mailhop.org;
spf=none smtp.mailfrom=saxonica.com smtp.remote-ip=81.92.206.10;
dmarc=none header.from=saxonica.com;
arc=none header.oldest-pass=0;
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=outbound.mailhop.org; s=dkim-high;
h=content-type:mime-version:message-id:in-reply-to:date:subject:to:from:
references:from;
bh=PLkH9RCwD+CwpNistgKz+DirOYXpLSMIdJ7Py88+sPY=;
b=OS0fkxvpwtjZuAPw/ekOy7pkkyy+ka7K9r1Lb8zS+tmRsS4fnSP4lF/22nqzK+Il3dc2XJhlSBQ94
Z7vWiWcs2Y/lRqZrx+duUd9xw5XSRz4B4vKv7U1Rh2DJtQ8W1tLFGgh7YebFtXNc8vog1BVQxpXAL1
V+eAB5NTt2RVAx7UvJH+xEjfB//NAZcXDXgLYxtcPRALxA4x2Z1yWcENAel4+oXYN+UlEEo6ddL6IP
V/1LvshKyIi3Db2AlW0iAeC8w94obhiAd+bDnaZsAw/aoe8Yq2wMXl0g688u0BR0RJTur4dZyk/5bx
TRHEOQwjTvf4QHNvhAUY3ILkYhNjhiw==
X-Originating-IP: 81.92.206.10
X-MHO-RoutePath: bndhbHNo
X-MHO-User: beef87d7-2f61-11ed-bc05-4b4748ac966b
X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information
X-Mail-Handler: DuoCircle Outbound SMTP
Received: from Hackmatack.local (unknown [81.92.206.10])
by outbound2.eu.mailhop.org (Halon) with ESMTPSA
id beef87d7-2f61-11ed-bc05-4b4748ac966b;
Thu, 08 Sep 2022 10:33:58 +0000 (UTC)
References: <redmine.issue-5673.20220831175452.3760@plan.io>
<redmine.journal-21765.20220908092411.3760@plan.io>
User-agent: mu4e 1.8.1; emacs 28.1
From: Norm Tovey-Walsh <norm@saxonica.com>
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-js@plan.io>
Subject: Re: [SaxonJS - Bug #5673] ixsl:set-property and URLs in property names
Date: Thu, 08 Sep 2022 11:31:07 +0100
In-reply-to: <redmine.journal-21765.20220908092411.3760@plan.io>
Message-ID: <m2illycfze.fsf@saxonica.com>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
micalg=pgp-sha256; protocol="application/pgp-signature"

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Saxonica Developer Community <notifications@plan.io> writes:
> Does that mean a $variable with a property name will have to include=20
> backticks? That=E2=80=99s also slightly awkward :)=20

I=E2=80=99m not exactly sure what context you=E2=80=99re imagining. Today, =
the property
name is unconditionally split on dots. So the name =E2=80=9Ca.b.c=E2=80=9D =
(whether it
comes from a literal or a variable, I believe) will be the equivalent of

$object["a"]["b"]["c"]

That=E2=80=99s a problem if the property name includes a period. If, for
example, you were trying to set the =E2=80=9Ca.b.c=E2=80=9D property. With =
the fix I=E2=80=99ve
proposed, you could use =E2=80=9C`a.b.c`=E2=80=9D and the dots inside the b=
acktick
protected region wouldn=E2=80=99t be treated as separators.

How are you imagining that that would be different or more awkward if
the name was in a variable? What alternative would you suggest?

Be seeing you,
norm

=2D-
Norm Tovey-Walsh
Saxonica

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAmMZxRUACgkQhVWfHhJM
AHnA6RAAyQXmPHgEt/aimlwug3XirYHlh/SOhe0Ji3hcsPPwFNCZ1+Zh6TMfV79k
oTuOaksSC6Zp3ZzsyzvVpTwRljx8jtcoWZBTEghWtNl+jQgMZr5RX0ZIKhG1ArOx
AAFMqO6QGBOJ6BuSfNN5zuIOgBUIJKq2Tla/5kIMOL8inLGUtX13mOBaorIMSYB2
wslfG+GAYXaT7Qf7+szR8yLwd8bP9UyYYU8omu0RqV6VysLSwQCQJqIty+bDHSNI
gIU+xU7Ogc9NZcwFerFyvxFR1HEf4Wfa9+0VEi3kl9+qjNj/jm8SqTyCwktsBPZc
Iu8fuyQ36/rkjKJazj1aOcBhRoGrea6z8oa4HnEoqHn6yft+e0tJn8FOC33Z6NS+
FPPVgtf+TKLtbGi/zyRdBM9MPN0nAa9TojxsW6tlDvHyIgR/5r2/8aSvjZJeG545
Uy/dKFYG7xH7x9VbpudNyRBIs8YS+NHRHZ+wSUI2DLAUn4FwEarNypq+iZHonHGT
uY+Kyi+7AjnzE47yGhGWdueYs6U0jFjSKteQmJh3mHTWkLQQ7BCSUc9Y3LeoDgT9
utERmBpcmY2sopuGnTugwNl/gbVjYSAyXB9paRpK9D4gy0AfJPCHr2lpAtpzeZj9
XbHQYw0/7nkK3febly6gRHxIFfe+arOIuiAkhAyZNVtti1rvJDw=
=jnF7
-----END PGP SIGNATURE-----
--=-=-=--
    (1-1/1)