Skip to content

Conversation

@alastair
Copy link
Member

@alastair alastair commented Dec 27, 2025

Issue(s)
Fixes #1987
Fixes https://logserver.mtg.upf.edu/organizations/sentry/issues/4720/?

Description
When we enter tags, they can only be a-zA-Z0-9 or hyphen. This is enforced in the sound edit form, and also in the follow tags url, but nowhere else.

If a browse query includes an invalid tag then we successfully search solr (no results), but then we try to generate a follow tags url, which fails. In the case of an invalid tag then just raise an error to the user.

todo
I'm not sure if we should show this error or treat that specific tag as invalid and remove it and continue the search. If we remove it then it might be a bit surprising to a user to see their entered tag not show up in results.

If a tag is invalid then we try and create a follow_tag url for it which
fails due to failing the regex in the url. Avoid this by treating an
invalid tag value as an error
@alastair alastair changed the base branch from master to sorting-target-tests December 28, 2025 18:10
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.

Adding space to tag in URL causes Server Error

2 participants