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

Correctly handle colon characters when searching for catalog numbers #617

Open
timhicks-ala opened this issue Sep 18, 2024 · 0 comments
Open

Comments

@timhicks-ala
Copy link

This record has a catalog number of QVM:2023:12:2779: https://biocache.ala.org.au/occurrences/62524ca1-2541-4bd5-87e8-459b5a226d42

Searching for that catalog number in biocache produces a query that returns a 400 server error: https://biocache.ala.org.au/occurrences/search?q=qid:1726626746779

The issue is that SOLR uses colons for field searching, and these are passed through without being escaped, causing a malformed query. Catalog number search should instead produce a URL like this, with "%3A" in place of colons: https://biocache.ala.org.au/occurrence/search?q=catalogue_number%3AQVM%3A2023%3A12%3A2779&qualityProfile=ALA&disableAllQualityFilters=true

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

No branches or pull requests

1 participant