-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Infinite loop in some search cases #5615
Comments
Critical because it leaves the application in a not so great state |
How do you create a circular reference? Links would be one way, but we're not indexing them. I've created a folder whose parent is itself. I'll use that as a test case for the interim as it appears to cause an infinite loop in search. |
@akhenry would something like this work? We basically just check to see if we've walked this parent before to avoid cycles. It seems to work when a folder has itself for a parent, and when a folder has a child as its parent, e.g. The disadvantage of this is that per the |
@scottbell Did some more investigation and found the culprit. I think the issue is in the I like your proposed approach, and I will file a separate issue to fix the move and link actions to prevent circular references from being created. |
Created #5620 to address the issue in the actions themselves. |
@ozyx to test |
Verified 8/22/22 Testathon: Using CouchDB locally, created a folder whose parent was itself. Searched for the folder name and it showed up correctly in the search results without infinite search loop or unending network requests. Only other issue was a duplicate entry, documented here: #5690 |
Summary
Typing certain text into the search box can result in infinite requests in the network tab.
Looks like it's something to do with getOriginalPath. Suspect there is a circular reference somewhere.
Steps to Reproduce
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: