necouchman commented on a change in pull request #383: GUACAMOLE-715: Change 
how null JDBC users are handled
URL: https://github.com/apache/guacamole-client/pull/383#discussion_r268451381
 
 

 ##########
 File path: 
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/user/UserService.java
 ##########
 @@ -411,8 +411,13 @@ public ModeledUser retrieveUser(AuthenticationProvider 
authenticationProvider,
 
         // Retrieve corresponding user model, if such a user exists
         UserModel userModel = userMapper.selectOne(username);
-        if (userModel == null)
-            return null;
+        
+        // If no user exists, create a temporary one to map
+        // the authenticated user.
+        if (userModel == null) {
+            userModel = new UserModel();
 
 Review comment:
   Okay, this should be handled, now.  And return tag has been updated.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to