GUACAMOLE-195: Remove incorrect check on empty username string.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/41b60ed6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/41b60ed6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/41b60ed6 Branch: refs/heads/master Commit: 41b60ed62b3a5202fb00ebaccfa11dc345127432 Parents: fdc654b Author: Nick Couchman <[email protected]> Authored: Mon Jan 30 07:39:00 2017 -0500 Committer: Nick Couchman <[email protected]> Committed: Tue Jan 31 22:22:46 2017 -0500 ---------------------------------------------------------------------- .../apache/guacamole/auth/http/AuthenticationProviderService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/41b60ed6/extensions/guacamole-auth-http/src/main/java/org/apache/guacamole/auth/http/AuthenticationProviderService.java ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-http/src/main/java/org/apache/guacamole/auth/http/AuthenticationProviderService.java b/extensions/guacamole-auth-http/src/main/java/org/apache/guacamole/auth/http/AuthenticationProviderService.java index d91c217..1d86deb 100644 --- a/extensions/guacamole-auth-http/src/main/java/org/apache/guacamole/auth/http/AuthenticationProviderService.java +++ b/extensions/guacamole-auth-http/src/main/java/org/apache/guacamole/auth/http/AuthenticationProviderService.java @@ -74,7 +74,7 @@ public class AuthenticationProviderService { HttpServletRequest request = credentials.getRequest(); if (request != null) { String username = request.getRemoteUser(); - if(username == null || username == "") { + if(username == null) { username = request.getHeader(confService.getHttpAuthHeader()); } if (username != null) {
