This issue has been created
 
 
ActivityPub Application / cid:jira-generated-image-avatar-789c097f-325f-4b62-89ce-cd764d5958e2 XAP-117 Open

The user picker fails when the typed text contains Solr special characters such as the colon of a URL

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-459c69eb-cfde-43bc-b413-32288ab3a20b Manuel Leduc created this issue on 24/Sep/26 13:46
 
Summary: The user picker fails when the typed text contains Solr special characters such as the colon of a URL
Issue Type: cid:jira-generated-image-avatar-789c097f-325f-4b62-89ce-cd764d5958e2 Bug
Affects Versions: 1.2
Assignee: Unassigned
Created: 24/Sep/26 13:46
Priority: cid:jira-generated-image-static-major-bab15a4c-624e-478b-8519-08dcd1968b26 Major
Reporter: Manuel Leduc
Description:

Problem

Typing a URL, e.g. https://mastodon.example/@alice, in the ActivityPub user picker returns no result and logs a Solr error:

SyntaxError: Cannot parse 'filter(type:webfinger) AND id:*https://mastodon.example/@alice*'

Cause

DefaultActivityPubStorage#searchWebFinger inserts the typed text as is in the Solr filter query filter(type:webfinger) AND id:<query>. The Solr special characters it contains, such as the : of a URL, are not escaped, so the query cannot be parsed.

Suggested fix

Escape the typed text (e.g. with ClientUtils.escapeQueryChars) before inserting it in the query.