From f0694057ac1c22c52f2e421e85b5ba26a8d616c8 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Tue, 23 Jan 2007 18:51:44 +0000 Subject: [PATCH] . Fix for http://issues.alfresco.com/browse/AWC-1082 - Deleting the Guest Home space no longer means an exception occurs when any user attempts a Guest login - The "go direct to login page url" workaround is no longer required - A redirection to the login page occurs automatically if the Guest Home space is deleted and a warning output to the console git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/web/app/servlet/AuthenticationHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java b/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java index 611e0dd28d..2ca584fc7e 100644 --- a/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java +++ b/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java @@ -145,7 +145,9 @@ public final class AuthenticationHelper // check that the home space node exists - else Guest cannot proceed if (nodeService.exists(guestHomeRef) == false) { - throw new InvalidNodeRefException(guestHomeRef); + // cannot login as Guest as Home is missing - return to login screen + logger.warn("Unable to locate Guest Home space - may have been deleted?"); + throw new AuthenticationException(""); } user.setHomeSpaceId(guestHomeRef.getId());