title: Spring isUserInRole dont work with role from MySQL DB
body: <p>My Spring Application use a database with user and role and crosstable of both for my login page.</p>
  
  <p>To redirect the users to different role pages i use a controller </p>
  
  <pre><code>@Controller
  public class StartController {
      @RequestMapping("/default")
      public String defaultAfterLogin(HttpServletRequest request) {
          if (request.isUserInRole("ADMIN")) {
              return "redirect:/admin/";
          }
          return "redirect:/user/";
      }
  }
  </code></pre>
  
  <p>But i try it with the user "admin" and i get the redirect to <code>/user</code></p>
  
  <p>Print out <code>request.getUserPrincipal().toString()</code>:</p>
  
  <pre><code>Principal: org.springframework.security.core.userdetails.User@79225df7:
  Username: admin@test.de; 
  Password: [PROTECTED]; 
  Enabled: true; 
  AccountNonExpired: true; 
  credentialsNonExpired: true; 
  AccountNonLocked: true; 
  Granted Authorities: ADMIN; 
  Credentials: [PROTECTED]; 
  Authenticated: true; 
  Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364:
  RemoteIpAddress: 0:0:0:0:0:0:0:1; 
  SessionId: null; 
  Granted Authorities: ADMIN
  </code></pre>
  
  <p>What is the Problem for the redirect to <code>/admin</code> ?</p>