You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Strong Liu (JIRA)" <ji...@apache.org> on 2014/02/07 01:44:21 UTC

[jira] [Updated] (USERGRID-77) can't login for newly created user due to NPE

     [ https://issues.apache.org/jira/browse/USERGRID-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Strong Liu updated USERGRID-77:
-------------------------------


https://github.com/usergrid/usergrid/pull/48

> can't login for newly created user due to NPE
> ---------------------------------------------
>
>                 Key: USERGRID-77
>                 URL: https://issues.apache.org/jira/browse/USERGRID-77
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: Strong Liu
>            Assignee: Strong Liu
>
> by default, the _usergrid.sysadmin.login.email_ property is not set, but in _org.usergrid.management.cassandra.ManagementServiceImpl#verifyAdminUserPasswordCredentials_ there is a line of code
> {code}
> boolean userIsSuperAdmin =
>                     properties.getProperty( PROPERTIES_SYSADMIN_LOGIN_EMAIL ).equals( userInfo.getEmail() );
> {code}
> so, it always throws NPE, which in turn makes the login impossible 
> and it gives wrong message saying invalid password :(



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)