id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 24713 Redirect loop detection in test client is incorrect agmathew "We recently upgraded our Django installation from 1.6 and 1.8 and noticed our unit tests were failing in multiple places. We tracked down the problem to changes stemming from the fix for #23682, which introduces stronger looper detection for redirects. The problem is that we have logic in our codebase that goes like this: * Go to /view/ * If a dirty bit is set, redirect to /update/ and remove the dirty bit * Redirect back to /view/ The loop detection erroneously considers this a redirect loop because /view/ is visited twice. Browsers don't have a problem with our redirects. I propose that the redirect loop detection should check that a previous site has been visited N times (for some value of N) before reporting a redirect loop. If this sounds reasonable, I can create a patch." Bug closed Testing framework 1.8 Release blocker wontfix redirect loop detection test client Accepted 1 0 1 0 0 0