title: ERR_TOO_MANY_REDIRECTS after add row to security config
body: <p>I add row </p>
  
  <pre><code>&lt;intercept-url pattern="/*" access="isAuthenticated()"/&gt; 
  </code></pre>
  
  <p>to security_config.xml
  and browser say me </p>
  
  <pre><code>ERR_TOO_MANY_REDIRECTS
  </code></pre>
  
  <p>security_config.xml</p>
  
  <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security"
      xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
      http://www.springframework.org/schema/security
      http://www.springframework.org/schema/security/spring-security-3.1.xsd"&gt;
  
      &lt;http use-expressions="true"&gt;
  &lt;!--        &lt;intercept-url pattern="/*" access="permitAll" /&gt; --&gt;
          &lt;intercept-url pattern="/*" access="isAuthenticated()"/&gt; 
          &lt;form-login login-page="/home.jsp"
              authentication-failure-url="/loginFailed" default-target-url="/index" /&gt;
          &lt;logout logout-success-url="/logOut" /&gt;
      &lt;/http&gt;
      &lt;authentication-manager&gt;
  &lt;!--        &lt;authentication-provider ref="provider" /&gt; --&gt;
  &lt;authentication-provider&gt;
      &lt;user-service&gt;
      &lt;user name="name" authorities="ROLE_USER"/&gt;
      &lt;/user-service&gt;
  &lt;/authentication-provider&gt;
      &lt;/authentication-manager&gt;
  
  &lt;/beans:beans&gt;
  </code></pre>
  
  <p>home.jsp:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=utf8"
      pageEncoding="utf8"%&gt;
  &lt;%@taglib uri="http://www.springframework.org/tags" prefix="spring"%&gt;
  &lt;%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;
  &lt;%@ taglib prefix="sec"
      uri="http://www.springframework.org/security/tags"%&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Home&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;
          Hello,
          &lt;sec:authentication property="principal" /&gt;!
      &lt;/h1&gt;
      &lt;c:set var="username"&gt;
          &lt;sec:authentication property="principal" /&gt;
      &lt;/c:set&gt;
      &lt;p style="color:#ff0000"&gt;${message}&lt;/p&gt;
  
      &lt;c:if test="${username != 'anonymousUser'}"&gt;
          &lt;form method="POST" action="j_spring_security_logout"&gt;
              &lt;input type="submit" value="log out"&gt;
          &lt;/form&gt;
          &lt;jsp:include page="WEB-INF/views/menu.jsp" flush="true" /&gt;
      &lt;/c:if&gt;
      &lt;form method="POST" action="&lt;c:url value="/j_spring_security_check" /&gt;" &lt;c:if test="${username != 'anonymousUser'}"&gt;hidden="true"&lt;/c:if&gt;&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;login&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="j_username" id="login"
                      onkeyup="validate()" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;password&lt;/td&gt;
                  &lt;td&gt;&lt;input type="password" name="j_password" id ="passwordId" onkeyup="validate()" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;remember me&lt;/td&gt;
                  &lt;td&gt;&lt;input type="checkbox" name="_spring_security_remember_me" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="2" align="right"&gt;&lt;input type="submit"
                      value="Login" id="idSubmit" disabled /&gt; &lt;input type="reset"
                      value="Reset" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;script type="text/javascript"&gt;
      function validate() {
          element = document.getElementById("idSubmit");
          element1 = document.getElementById("login");
          resultMatch = element1.value.match('([a-zA-Z0-9])+(_){1}([a-zA-Z0-9])+')
          if (resultMatch == null){
              element.setAttribute("disabled", "disabled");
              return
          }
          if(resultMatch[0] == element1.value &amp;&amp; document.getElementById("passwordId").value !="" ){
              element.removeAttribute("disabled");
              return
          }
          else
              element.setAttribute("disabled", "disabled");
  
      }
      window.onload = "validate()";
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>but if I write so</p>
  
  <pre><code>&lt;intercept-url pattern="/*" access="permitAll" /&gt; 
  </code></pre>
  
  <p>it works good.</p>
  
  <p>Can you help me?</p>