Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2016-01-08 21:24:55 +0000
committerThomas Watson2016-01-08 21:24:55 +0000
commit0bc9249ac4efc3d8626fc05afee0ee9931f0f1c9 (patch)
tree7aa9c5d2428c2355e49a0a33d7c45f250757cc1c /bundles/org.eclipse.equinox.http.servlet
parentdf2a054cc06a51e28c328c560193efb2cab6e559 (diff)
downloadrt.equinox.bundles-0bc9249ac4efc3d8626fc05afee0ee9931f0f1c9.tar.gz
rt.equinox.bundles-0bc9249ac4efc3d8626fc05afee0ee9931f0f1c9.tar.xz
rt.equinox.bundles-0bc9249ac4efc3d8626fc05afee0ee9931f0f1c9.zip
Bug 485466 - [http whiteboard] HttpContext attributes are not usedI20160112-0800
correctly for getAuthType or getRemoteUser Change-Id: I70c78a5bb4610a3fd4c4958e523b8a217a52bd00 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
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.java6
1 files changed, 3 insertions, 3 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 dd98b265..c7b88d09 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2015 Cognos Incorporated, IBM Corporation and others.
+ * Copyright (c) 2005, 2016 Cognos Incorporated, IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -166,7 +166,7 @@ public class HttpServletRequestWrapperImpl extends HttpServletRequestWrapper {
}
public String getAuthType() {
- String authType = (String)request.getAttribute(HttpContext.AUTHENTICATION_TYPE);
+ String authType = (String) this.getAttribute(HttpContext.AUTHENTICATION_TYPE);
if (authType != null)
return authType;
@@ -174,7 +174,7 @@ public class HttpServletRequestWrapperImpl extends HttpServletRequestWrapper {
}
public String getRemoteUser() {
- String remoteUser = (String) request.getAttribute(HttpContext.REMOTE_USER);
+ String remoteUser = (String) this.getAttribute(HttpContext.REMOTE_USER);
if (remoteUser != null)
return remoteUser;

Back to the top