Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2012-08-28 12:24:14 -0400
committerJesse McConnell2012-08-28 12:24:14 -0400
commitf7793ae94d6969d41892d46bb3865efa26c6b35f (patch)
tree55d6a0477d53474a77561eff0ff6c285aa3bcd07 /jetty-security/src/main/java
parent7af3d5c047f4e11f220c53db6a09e624f1b50fdc (diff)
downloadorg.eclipse.jetty.project-f7793ae94d6969d41892d46bb3865efa26c6b35f.tar.gz
org.eclipse.jetty.project-f7793ae94d6969d41892d46bb3865efa26c6b35f.tar.xz
org.eclipse.jetty.project-f7793ae94d6969d41892d46bb3865efa26c6b35f.zip
[Bug 387896] populate session in SessionAuthentication as a valueBound in addition to activation so it is populate when needed
Diffstat (limited to 'jetty-security/src/main/java')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java
index 74f143b05f..260d5ddd3f 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java
@@ -119,16 +119,23 @@ public class SessionAuthentication implements Authentication.User, Serializable,
public void sessionWillPassivate(HttpSessionEvent se)
{
+
}
public void sessionDidActivate(HttpSessionEvent se)
{
if (_session==null)
+ {
_session=se.getSession();
+ }
}
public void valueBound(HttpSessionBindingEvent event)
{
+ if (_session==null)
+ {
+ _session=event.getSession();
+ }
}
public void valueUnbound(HttpSessionBindingEvent event)

Back to the top