Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF characters in project slugs break project lookup #250

Open
kueda opened this issue Apr 9, 2021 · 0 comments
Open

UTF characters in project slugs break project lookup #250

kueda opened this issue Apr 9, 2021 · 0 comments
Assignees
Labels

Comments

@kueda
Copy link
Member

kueda commented Apr 9, 2021

https://api.inaturalist.org/v1/observations?project_id=99-arter-at-se-f%C3%B8r-du-bliver-voksen returns a 422 even though https://www.inaturalist.org/projects/99-arter-at-se-f%C3%B8r-du-bliver-voksen exists. The fact that the slug begins with a number doesn't seem to be a factor, b/c if you make a project called "99 Problems" a 422 ain't one. The relevant filter is getting constructed at https://github.com/inaturalist/iNaturalistAPI/blob/main/lib/models/es_model.js#L22, though it's not clear to me why UTF values would interfere.

@kueda kueda added the bugs label Apr 9, 2021
@pleary pleary self-assigned this Jan 3, 2024
pleary added a commit that referenced this issue Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants