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

Indexing: A deny path starting with a . hangs all indexing #39

Open
m-i-l opened this issue Apr 28, 2021 · 0 comments
Open

Indexing: A deny path starting with a . hangs all indexing #39

m-i-l opened this issue Apr 28, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@m-i-l
Copy link
Contributor

m-i-l commented Apr 28, 2021

A user has entered a deny path .html.en.utf8 and this has hung all indexing. Last entries in the indexing log were:

 [searchmysitescript] INFO: Changing *.html.en.utf8 in deny path to *.html.en.utf8
 [searchmysitescript] INFO: Deny path ['*.html.en.utf8']

It looks like issue #32 "Deny path *. blocking all indexing for a site", which was the issue where e.g. *.xml (i.e. with the asterisk before the dot) would block indexing. The solution for that was a regex to change e.g. *.xml to *.xml$ prior to indexing (leaving the database untouched).

Temporary workaround in this case is to change the filter from .html.en.utf8 to *.utf8 in the database. This puts the following in the indexing log before indexing continues:

2021-04-29 09:06:47 [searchmysitescript] INFO: Changing *.utf8 in deny path to .utf8$
2021-04-29 09:06:47 [searchmysitescript] INFO: Deny path ['.utf8$']

This suggests the fix from last time isn't working exactly as expected, i.e. it triggers on a string starting with (or containing multiple) dot characters rather than one starting with asterisk dot, plus in that case it wasn't correctly adding the $ to the end of the string.

@m-i-l m-i-l added the bug Something isn't working label Apr 28, 2021
@m-i-l m-i-l changed the title A deny path starting with a . hangs all indexing Indexing: A deny path starting with a . hangs all indexing Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant