Skip to content

agent, xftp: parse simplex: links without the slash after the scheme - #2092

Merged
epoberezkin merged 11 commits into
simplex-chat:masterfrom
evgeny-simplex:ep/simplex-scheme-slash
Nov 24, 2026
Merged

epoberezkin merged 11 commits into
simplex-chat:masterfrom
evgeny-simplex:ep/simplex-scheme-slash

Conversation

@evgeny-simplex

@evgeny-simplex evgeny-simplex commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

simplex-chat/simplex-chat#8306

Links are still generated with / after simplex:. The parsers also accept them without it, so that clients parse that form before links are generated in it.

  • StrEncoding ServiceScheme encodes and parses the separator after the scheme: simplex:/ (parsed with the / optional) and https://<host>/. Connection request, short link and file description URIs no longer handle that / themselves, and the short link's own authority parser is replaced by the scheme's.
  • SimpleX names take the scheme prefix before name through the same parser, accepting only simplex:, so simplex:name#… parses as a name and https://<host>/name#… does not. After the prefix a name starts with # or @: simplex:namealice is not a name (on master it parsed as #alice).

Tests:

/Core tests/Agent core tests/Connection request/
/file description URIs/
/Encoding service locations/

@evgeny-simplex evgeny-simplex changed the title agent: parse simplex: links without the slash after the scheme agent, xftp: parse simplex: links without the slash after the scheme Nov 24, 2026
@epoberezkin
epoberezkin marked this pull request as ready for review November 24, 2026 17:27
@epoberezkin
epoberezkin self-requested a review as a code owner November 24, 2026 17:27
epoberezkin
epoberezkin previously approved these changes Nov 24, 2026
@epoberezkin
epoberezkin merged commit 5d0e735 into simplex-chat:master Nov 24, 2026
9 checks passed
@epoberezkin
epoberezkin deleted the ep/simplex-scheme-slash branch November 24, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants