Article View: linux.debian.bugs.dist
Article #116Bug#1150291: apt: sqv method passes an invalid --policy-as-of date on 29 February
From: David Kalnischkies
Date: Thu, 08 Oct 2026 07:30
Date: Thu, 08 Oct 2026 07:30
73 lines
4988 bytes
4988 bytes
--6yzo42hp2ng3olz7 Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: Bug#1150291: apt: sqv method passes an invalid --policy-as-of date on 29 February MIME-Version: 1.0 Hi, that is an interesting find! (And some sad code) Am Wed, Oct 07, 2026 at 11:47:19PM -0600, schrieb Christian No=C3=A9 Ramos = L=C3=B3pez: > Two things would avoid it: computing the date with a calendar, or > passing "+1y", which sqv accepts as an offset (--policy-as-of +1y > exits 0 here). The former should be relatively easy (as far as dates are concerned) with what is available via <chrono> in C++20 and above (nowadays). The second option seems (at least for now) to be a usage error itself as the documentation (sqv manpage) for --policy-as-of says | The time is expressed as an ISO 8601 formatted timestamp. And earlier it expressed in general: | The TIMESTAMPs must be given in ISO 8601 format I presume that +1y works stems from --time which says: | Set the reference time as an ISO 8601 formatted timestamp or | relative offset. [=E2=80=A6] This time is also used as the default | value for --not-after and --policy-as-of [=E2=80=A6] "relative offset" does not seem defined through. Aside: I /suppose/ "PY1" would be a valid ISO 8601 (duration), but I haven't dared to try how sqv would react. Maybe its just me, but I would prefer the former (even if documentation of sqv is changed) as the wording --policy-as-of highly suggests an exact date for me=E2=80=A6 even if I realize as of 5 seconds later that this might be a valid way of speaking, too. Best regards David Kalnischkies --6yzo42hp2ng3olz7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5sn+Q4uCja/tn0GrMRvlz3HQeIMFAmrHQscACgkQMRvlz3HQ eIOg2Q/+N7LmrPt4UOxfyPhp9d5haTO5DxZ5Vt0ruQr0V4MLkJ2yftKBYrLcTIUb f5Cl+YaCXLSu+rTBsOxDyFV/V2+at3LnWQLGSu9jRbyzImdJAP2SRIXvn9qaWV/r i1/h5Q9Eu/QBAkZLl2Mdqi/YZHkA/EEwZf41Eay5U5PFOcS8Eb/QdfA6qLcaYn1Z p75t/HDyNm0Uvj4yRua+K2OmjnRoS+/Km+xiIjNeACrAEgMA5vNirlBrPUSRmLAt rdkzqK/jak1ZsF1ftmLHZgnz3OqMajB9d4UUOCHuynYf8Nt4E/fC5DNBLnn0srXk xtdabvQsSwrVOPqMB+R5T/dzcEMVg1BtXvThvioYtgRQ92Qm/MYXgqdwiD9aNO/3 vNn4Nz3ddk1qBZyuXeFxH6kyp+FnQU9cAF3TZ9bkLdNXtXhF8KANI+cIm1guqwW8 vl3E468T5Z4h+PogKVlgYHPaLPRnu6kLiA8hXtnjC79xyCdb3g2fp3xaztY+L42Y E029ByA/3l20gchFO6vFWNf0CP84JDBrskG3zyewYypcH84tJba6QLW+wXRclgf9 rK1Dh/4kYZ6Ww8OZGH18xTgruQ2O8yzIxQWUhO7tTxV4E/nKj56gGJdGT68z73yi MqE1eleZtdthtJtf3f9mMIYE2HV57ltekFyE2sClYrUQ+ttkIqo= =I0dl -----END PGP SIGNATURE----- --6yzo42hp2ng3olz7--
Technical Details
Message-ID:
<NLQJH-4eax-15@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NLQJH-4eax-17@gated-at.bofh.it> <NLQJH-4eax-17@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: David Kalnischkies <david@kalnischkies.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1150291: apt: sqv method passes an invalid --policy-as-of date on 29 February Date: Thu, 08 Oct 2026 09:30:01 +0200 Message-ID: <NLQJH-4eax-15@gated-at.bofh.it> References: <NLQJH-4eax-17@gated-at.bofh.it> <NLQJH-4eax-17@gated-at.bofh.it> X-Original-To: Christian Noé Ramos López <chris@nortesoftware.dev>, 1150291@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Oct 8 07:21:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.751 Reply-To: David Kalnischkies <david@kalnischkies.de>, 1150291@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: deity@lists.debian.org X-Debian-Pr-Message: followup 1150291 X-Debian-Pr-Package: apt X-Debian-Pr-Source: apt Authentication-Results: hermippe.uberspace.de; auth=pass (plain); dkim=none (length tag is unsupported) header.i=unknown header.d=kalnischkies.de header.s=mail MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6yzo42hp2ng3olz7" Content-Disposition: inline X-Rspamd-Bar: ---- X-Rspamd-Report: BAYES_HAM(-2.937592) MID_RHS_NOT_FQDN(0.5) SIGNED_PGP(-2) MIME_GOOD(-0.2) X-Rspamd-Score: -4.637592 X-Greylist: delayed 333 seconds by postgrey-1.37 at buxtehude; Thu, 08 Oct 2026 07:20:02 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995667 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 73 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 8 Oct 2026 09:14:23 +0200 X-Original-Message-ID: <asc3V9Ac2XeCAKo_@crossbow> X-Original-References: <CAHGSfbZiV=jCcvjAJjwF+xjkVK88cwVfWL7ihgG9Pqf5tpAaHQ@mail.gmail.com> <CAHGSfbZiV=jCcvjAJjwF+xjkVK88cwVfWL7ihgG9Pqf5tpAaHQ@mail.gmail.com>