-
Notifications
You must be signed in to change notification settings - Fork 29
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
Loop detection refactoring #21
Conversation
I don't think this is correct, it is global for a reason. You can have a loop that involves more than one redirect. In fact, those are the common cases. Something like content/title -> content/old-title -> content/title. It could even involve another module, so for example, you might have a redirect from the alias to node/5, and then node/5 is being redirected away again by globalredirect. Stuff like that. |
Hmm, it completely blows up on load testing (of different URLs from same
|
I see, load testing of redirects, I assume? I think the best option is to go with option b) in #16. That basically means that when we find a matching redirect, we pass the redirect that we create again through findMatchingRedirect, repeatedly until we find one that doesn't find one. That won't find all cases as mentioned above, but it should find some. Making it configurable should also be fine, but might not be necessary with this approach? |
This makes detection configurable. Option b in #16 sounds good, but I don't have the bandwidth to pursue that at the moment. This will also be an issue with web crawlers (eg, Google), not just load testing. |
60e2af5
to
f4d9bc7
Compare
This latest attempt removes flood-based detection, and pursues option b in #16. |
899f259
to
e2f73f3
Compare
This should fix the failing tests. I added tests for the loop detection as well. |
d4d0161
to
5d2002f
Compare
- Redirects are searched for recursively to avoid loops. - Addresses issue md-systems#16.
5d2002f
to
5f2e017
Compare
Attempt to address #16.