From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qLCnHYULyWQDXQEASxT56A (envelope-from ) for ; Tue, 01 Aug 2023 15:41:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UAXFHIULyWRhTAEAG6o9tA (envelope-from ) for ; Tue, 01 Aug 2023 15:41:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D2D8440B87 for ; Tue, 1 Aug 2023 15:41:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=K1KUiiSl; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690897285; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wntk+mM6Sfrd2Ev+8FVL2bTTNGAWe8QbyCtdDeUhSKo=; b=Dhtew9n50eBLZWnM85J0m0oATFngJNn7VXYiRwQGAXy1lfYQOWp9pl5a9CvrVaslHeFecm AG3C7AopCkpADS3r4Zce/nbluuJemdcQ2Uqb0TzOhCeemdnx4waIBcthtCo+xTN65C/l55 wlvWOsP4IkqD2tXbAwc+jJBYO3W/4IK8ZWjPbj1AZ3QZGhx5GYEiLXWxqUS8w3YUnTUR/a HI91eA5AHwGHTUoQS9vVoXY062XHFfm/jW7u1WHQ5y460qN/SBRuaxN+TBIp9A12DiAjRO 1em87e4iwvqu4U7a7Iy3IicrzjS5LoP6Ek6hYoYjqeLy4YP8OxilIbPoe6YEhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=K1KUiiSl; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690897285; a=rsa-sha256; cv=none; b=PeMfBa1YWnPnfaXliGDteXrddC+TdDHn1Mn5sPYqCAGeoAFdP6+TOil5/EijkVUT4hA+3B LVOeFyZFTecLnjuAlIEs0hXuLf5CjiKrsp+PRrLJjGmEA24y9cuo7ldK+oxqtgF7Qr202c 2zsmF4d5m/Gcrs2kG5k+esLz3slYj947ZHqeo2Kn8N8cKP7W09euUjt8arEShmobOlapvV S2eihbd3gquXg8oSn5FpeBSorBcLl07xmn5pJJyAmYDxTBsYApK8/L9+GgXlomSYboCIG9 Lq6NKh2eI503f1NcHofYSrJzzcbM0lOZ0Rvez0Na+s6grWbqBcizUhnawSxtrQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQpcC-0000G0-0F; Tue, 01 Aug 2023 09:40:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQpc8-0000Bn-Kg for emacs-orgmode@gnu.org; Tue, 01 Aug 2023 09:40:40 -0400 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQpc6-0005Pa-SN for emacs-orgmode@gnu.org; Tue, 01 Aug 2023 09:40:40 -0400 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3a5ad4477a7so4265006b6e.1 for ; Tue, 01 Aug 2023 06:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690897237; x=1691502037; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wntk+mM6Sfrd2Ev+8FVL2bTTNGAWe8QbyCtdDeUhSKo=; b=K1KUiiSl+MmAFURe5LAAYU1TIqF7E4GYlymhyhaXHe1pbuyh286SzSVTMs+H3Cd5mD OdZyB3iIs6pDVcUTul9R3Yo5o+MSPjS1oC39s+mi7v6wbPt35O8qL8TxSX8gG1xMKbq1 RLVFedcB0RuNlgzFzOjvuhsV4ydbhLfEq2jP/iz5ojTjwB8J3z8tOGPg74tHB5m0yV9q Nhdva63r4cty0PKiw6K3YYEnte5CkUs6YlB6TRnZfvsadxwRZ8CU+AX6gh/9ACT4ii8h 8cocpffArc6iiN2iW1pou3kuoLH+FPgjqzKo/obip7CCsvuHsNsn2LZ/JLZddBas3MSK x0+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690897237; x=1691502037; h=cc: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=wntk+mM6Sfrd2Ev+8FVL2bTTNGAWe8QbyCtdDeUhSKo=; b=gryURHpypqRPCmEoKC5QUIEMMWxGiHYcNkBvXUXM/4ylHJmmU+GKuWcl4WbV4EAtEJ 2pFXfBXXunvkEZTuNLuKOv/2mhqAy5ie0G4NINPf0ZGbX3RJcNJ+2RSVuDGHQAU6id8d bxTaWO6pTrlmqDzQ1t8CjgR4obvY1WKDw9NZqXlVRllRyvYK5QAvsjr8iqTprdaf0sMj SjasIKTOm0JhjsqgUYQH2qBO+P8O7mFcULkXqHNJcw0NDxqgdGNysSZ/BBNW3K6nMw3p WR9Y6cA2r1+SSQu9UO/md0vFzCv99Y5jfm1ZDDOD4l8vVuo2zWXQ2z01imINwUxt2u+7 hGfw== X-Gm-Message-State: ABy/qLaqE9hOs5r4omEAEO8XVeUVA+p2JLe9IzzVS6XvAz1xm3kRjUqh 2rodmZRsOHGkOlM9BRZLoyfSHF6yDojDzZfuyQ8= X-Google-Smtp-Source: APBJJlEk9KyA1Bi1a9/Kdwo9kvPWDrNjGdu3VI5bvVxBIwhDA+d9Q9o1drID4hJTZ2Xp2QNhgZZOdqHJMW2JmBAJUEo= X-Received: by 2002:a05:6358:4196:b0:139:b4c0:94d with SMTP id w22-20020a056358419600b00139b4c0094dmr2792636rwc.12.1690897237568; Tue, 01 Aug 2023 06:40:37 -0700 (PDT) MIME-Version: 1.0 References: <87bkfrotsn.fsf@localhost> In-Reply-To: From: Michael Dauer Date: Tue, 1 Aug 2023 15:40:26 +0200 Message-ID: Subject: Re: BUG: org-protocol broken To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000003270520601dcb132" Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=mick.dauer@gmail.com; helo=mail-oi1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.21 X-Spam-Score: -8.21 X-Migadu-Queue-Id: D2D8440B87 X-Migadu-Scanner: mx1.migadu.com X-TUID: dYU9SA/r3Evd --0000000000003270520601dcb132 Content-Type: text/plain; charset="UTF-8" Sorry, my mistake. >>>org-protocol://store-link?url=foo&title=bar<<< works. Am Di., 1. Aug. 2023 um 15:38 Uhr schrieb Michael Dauer < mick.dauer@gmail.com>: > Just look at the first examples, which are 1-to-1 copied from org-protocol > code/documentation. > > org-protocol://store-link?url=foo&title=bar > is not working. And this is exactly what store-link is for. > > Am Di., 1. Aug. 2023 um 14:01 Uhr schrieb Ihor Radchenko < > yantar92@posteo.net>: > >> Michael Dauer writes: >> >> > emacsclient "org-protocol://store-link?url=http:123&title=t: w: q&a - >> r-s >> > (a)" >> > shows *ERROR*: Wrong type argument: arrayp, nil >> > >> > IMO the last example is a fully plausible link. I actually need it to >> > create a link which then calsl e.g. the outlook protocol. >> >> "&" in title is ambiguous - it interferes with "&" in the protocol URI >> scheme. You need to URL-encode "&" to escape the "&" that are actually >> parts of key values. >> >> > ~2 months ago the same links worked fine. >> >> We did not have any significant changes in org-protocol for years. >> >> -- >> Ihor Radchenko // yantar92, >> Org mode contributor, >> Learn more about Org mode at . >> Support Org development at , >> or support my work at >> > --0000000000003270520601dcb132 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, my mistake. >>>org-protocol://store-link?u= rl=3Dfoo&title=3Dbar<<< works.

Am Di., 1. Aug. 2023 um 15:38=C2= =A0Uhr schrieb Michael Dauer <mi= ck.dauer@gmail.com>:
Just look at the first examples, which ar= e 1-to-1 copied from org-protocol code/documentation.

<= div>org-protocol://store-link?url=3Dfoo&title=3Dbar
is no= t working. And this is exactly what store-link is for.

Am Di., 1. Aug.= 2023 um 14:01=C2=A0Uhr schrieb Ihor Radchenko <yantar92@posteo.net>:
Michael Dauer <mick.dauer@gmail.com>= writes:

> emacsclient "org-protocol://store-link?url=3Dhttp:123&title= =3Dt: w: q&a - r-s
> (a)"
> shows *ERROR*: Wrong type argument: arrayp, nil
>
> IMO the last example is a fully plausible link. I actually need it to<= br> > create a link which then calsl e.g. the outlook protocol.

"&" in title is ambiguous - it interferes with "&&qu= ot; in the protocol URI
scheme. You need to URL-encode "&" to escape the "&&= quot; that are actually
parts of key values.

> ~2 months ago the same links worked fine.

We did not have any significant changes in org-protocol for years.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--0000000000003270520601dcb132--