Commit 341df336 by Tuukka Kivilahti

Merge branch 'sessionfix' into 'master'

Verify that there exists a session on normal user entry

See merge request !391
2 parents d530453d a946dbb0
......@@ -196,7 +196,10 @@ public class HostnameFilter implements Filter {
}
}
if(httpRequest.getUserPrincipal() == null) {
// If we are still unlogged, ie we are a normal user
if (httpRequest.getUserPrincipal() == null) {
// Verify that we have an open session.
httpRequest.getSession(true);
try {
authtype = AuthType.ANON;
httpRequest.login(User.ANONYMOUS_LOGINNAME + '@' + hostname, null);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!