emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: org-protocol broken
@ 2023-08-01 11:44 Michael Dauer
  2023-08-01 12:01 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Dauer @ 2023-08-01 11:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

Org mode version 9.7-pre (release_9.6.4-327-gf81ba4

org-protocol://store-link?url=http:%2F%2Flocalhost%2Findex.html&title=The%20title
stores http://localhost/index.html

org-protocol://store-link?url=val&key2=val2
stores val

org-protocol://store-link?url=val?key2=val2
stores val?key2

org-protocol://store-link?url=val?key2?val2
stores val?key2?val2

org-protocol://store-link?url=http:123&title=t: w: q&a - r-s (a)
stores nothing

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.

~2 months ago the same links worked fine.

[-- Attachment #2: Type: text/html, Size: 1158 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG: org-protocol broken
  2023-08-01 11:44 BUG: org-protocol broken Michael Dauer
@ 2023-08-01 12:01 ` Ihor Radchenko
  2023-08-01 13:38   ` Michael Dauer
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2023-08-01 12:01 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

Michael Dauer <mick.dauer@gmail.com> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG: org-protocol broken
  2023-08-01 12:01 ` Ihor Radchenko
@ 2023-08-01 13:38   ` Michael Dauer
  2023-08-01 13:40     ` Michael Dauer
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Dauer @ 2023-08-01 13:38 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

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 <mick.dauer@gmail.com> 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 <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>

[-- Attachment #2: Type: text/html, Size: 1945 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG: org-protocol broken
  2023-08-01 13:38   ` Michael Dauer
@ 2023-08-01 13:40     ` Michael Dauer
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Dauer @ 2023-08-01 13:40 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]

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 <mick.dauer@gmail.com> 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 <https://orgmode.org/>.
>> Support Org development at <https://liberapay.com/org-mode>,
>> or support my work at <https://liberapay.com/yantar92>
>>
>

[-- Attachment #2: Type: text/html, Size: 2422 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-01 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 11:44 BUG: org-protocol broken Michael Dauer
2023-08-01 12:01 ` Ihor Radchenko
2023-08-01 13:38   ` Michael Dauer
2023-08-01 13:40     ` Michael Dauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).