Skip to content

Conversation

@moseshll
Copy link
Contributor

@moseshll moseshll commented Jan 22, 2026

  • Modify the .htaccess rewrite rules for the Bib API so that spaces are escaped and passed through to volumes.php
    • This should reduce or eliminate AH10411: Rewritten query string contains control characters or spaces from the logs
  • Add a bail-out condition in volumes.php:
    • If a query term has been reduced to just whitespace, don't send to Solr
  • Add a filter on all query terms:
    • Remove all spaces after any other normalization has taken place
    • The existing lucene_escape should take care of anything else that might throw Solr for a loop
  • Behavior around when to return a 400 is unchanged. It only gets sent when all of the query terms or fields are bogus.
  • Add playwright tests for htid and cid queries with spaces -- we can expect nginx & httpd behavior to be the same now.

- Modify the `.htaccess` rewrite rules for the Bib API so that spaces are escaped and passed through to `volumes.php`
  - This should reduce or eliminate `AH10411: Rewritten query string contains control characters or spaces` from the logs
- Add a bail-out condition in `volumes.php`:
  - If a query term has been reduced to just whitespace, don't send to Solr
- Add a filter on all query terms:
  - Remove all spaces after any other normalization has taken place
  - The existing lucene_escape should take care of anything else that might throw Solr for a loop
- Behavior around when to return a 400 is unchanged. It only gets sent when all of the query terms or fields are bogus.
…ginx behavior is what we expect now from apache.
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