From 34ccf9528504fa72914ebec0097f4a3de63e6793 Mon Sep 17 00:00:00 2001 From: mindless Date: Thu, 12 Nov 2009 04:24:47 +0000 Subject: [PATCH] [HUDSON-4822] patch from lkishalmi to return after sending redirect in doLoginEntry git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23678 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Hudson.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java index 7c442527d3..00a6d015ec 100644 --- a/core/src/main/java/hudson/model/Hudson.java +++ b/core/src/main/java/hudson/model/Hudson.java @@ -2641,8 +2641,10 @@ public final class Hudson extends Node implements ItemGroup, Stapl * Called once the user logs in. Just forward to the top page. */ public void doLoginEntry( StaplerRequest req, StaplerResponse rsp ) throws IOException { - if(req.getUserPrincipal()==null) + if(req.getUserPrincipal()==null) { rsp.sendRedirect2("noPrincipal"); + return; + } String from = req.getParameter("from"); if(from!=null && from.startsWith("/") && !from.equals("/loginError")) {