- 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
This commit is contained in:
Kevin Roast
2007-01-23 18:51:44 +00:00
parent ca51dc8913
commit f0694057ac

View File

@@ -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());