diff options
author | Raymond Auge | 2015-08-28 13:44:22 +0000 |
---|---|---|
committer | Raymond Auge | 2015-08-28 16:11:14 +0000 |
commit | 13eeb0a927112cb4ce73258f8a460f5f9199a703 (patch) | |
tree | 6b045c918e46d11474fde24fa109e3f322118e3a /bundles/org.eclipse.equinox.http.servlet | |
parent | 32c380dfca716e82f1e1c2daf405bd29a7d486d6 (diff) | |
download | rt.equinox.bundles-13eeb0a927112cb4ce73258f8a460f5f9199a703.tar.gz rt.equinox.bundles-13eeb0a927112cb4ce73258f8a460f5f9199a703.tar.xz rt.equinox.bundles-13eeb0a927112cb4ce73258f8a460f5f9199a703.zip |
Bug 476069 - [http servlet] some attributes are masked by the container, so let those fall through
Diffstat (limited to 'bundles/org.eclipse.equinox.http.servlet')
-rw-r--r-- | bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/servlet/HttpServletRequestWrapperImpl.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/servlet/HttpServletRequestWrapperImpl.java b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/servlet/HttpServletRequestWrapperImpl.java index cee7ffaf3..c00ad4f2c 100644 --- a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/servlet/HttpServletRequestWrapperImpl.java +++ b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/servlet/HttpServletRequestWrapperImpl.java @@ -298,7 +298,12 @@ public class HttpServletRequestWrapperImpl extends HttpServletRequestWrapper { } } - return current.getAttributes().get(attributeName); + Map<String, Object> attributes = current.getAttributes(); + if (attributes.containsKey(attributeName)) { + return attributes.get(attributeName); + } + + return request.getAttribute(attributeName); } @Override |