tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: TOMEE-1479 HttpRequestImpl#getUserPrincipal should return SecurityService..getCallerPrincipal
Date Wed, 17 Dec 2014 20:40:57 GMT
Repository: tomee
Updated Branches:
  refs/heads/develop fed538c68 -> bc0d83010


TOMEE-1479 HttpRequestImpl#getUserPrincipal should return SecurityService..getCallerPrincipal


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/bc0d8301
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/bc0d8301
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/bc0d8301

Branch: refs/heads/develop
Commit: bc0d8301091626ed550ba6d97787487aece354d7
Parents: fed538c
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Wed Dec 17 21:40:30 2014 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Wed Dec 17 21:40:30 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/openejb/server/httpd/HttpRequestImpl.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/bc0d8301/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
----------------------------------------------------------------------
diff --git a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
index 7358672..62eecf4 100644
--- a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
+++ b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
@@ -16,7 +16,6 @@
  */
 package org.apache.openejb.server.httpd;
 
-import org.apache.openejb.core.security.jaas.UserPrincipal;
 import org.apache.openejb.loader.SystemInstance;
 import org.apache.openejb.spi.SecurityService;
 import org.apache.openejb.util.ArrayEnumeration;
@@ -856,7 +855,7 @@ public class HttpRequestImpl implements HttpRequest {
 
     @Override
     public Principal getUserPrincipal() {
-        return new UserPrincipal("");
+        return SystemInstance.get().getComponent(SecurityService.class).getCallerPrincipal();
     }
 
     @Override


Mime
View raw message