@ -50,7 +50,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
@@ -50,7 +50,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
@ -104,9 +104,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
@@ -104,9 +104,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
try{
Objectvalue=session.getAttribute(name);
if(value!=null){
synchronized(this.sessionAttributesToUpdate){
this.sessionAttributesToUpdate.put(name,value);
}
this.sessionAttributesToUpdate.put(name,value);
}
returnvalue;
}
@ -129,9 +127,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
@@ -129,9 +127,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
}
else{
HttpSessionsession=getSession(true);
synchronized(this.sessionAttributesToUpdate){
this.sessionAttributesToUpdate.remove(name);
}
this.sessionAttributesToUpdate.remove(name);
session.setAttribute(name,value);
}
}
@ -147,9 +143,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
@@ -147,9 +143,7 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
else{
HttpSessionsession=getSession(false);
if(session!=null){
synchronized(this.sessionAttributesToUpdate){
this.sessionAttributesToUpdate.remove(name);
}
this.sessionAttributesToUpdate.remove(name);
try{
session.removeAttribute(name);
// Remove any registered destruction callback as well.
@ -228,24 +222,22 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
@@ -228,24 +222,22 @@ public class ServletRequestAttributes extends AbstractRequestAttributes {
// Store session reference for access after request completion.
@ -59,9 +59,9 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -59,9 +59,9 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@ -115,18 +115,14 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -115,18 +115,14 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@ -150,15 +146,11 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -150,15 +146,11 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@ -176,15 +168,11 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -176,15 +168,11 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@ -256,8 +244,8 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -256,8 +244,8 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@ -266,11 +254,6 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -266,11 +254,6 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@ -280,8 +263,12 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
@@ -280,8 +263,12 @@ public class PortletRequestAttributes extends AbstractRequestAttributes {
}
}
}
this.globalSessionAttributesToUpdate.clear();
catch(IllegalStateExceptionex){
// Session invalidated - shouldn't usually happen.