DBUserManager is not storing the password in the User object
------------------------------------------------------------

                 Key: FTPSERVER-183
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-183
             Project: FtpServer
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0-M4
            Reporter: David Latorre
            Priority: Minor


I suppose that as a result of the change in the strategy to encrypt passwords 
in DBUserManager, getUserByName()  -called by the authenticate() method - 
returns an User object with the password field unset.

When trying to use the "save" method , this line throws  a NullPointerException
  map.put(ATTR_PASSWORD, 
escapeString(passwordEncryptor.encrypt(user.getPassword())));

I'm providing a patch although maybe there's a more elegant solution.





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to