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/06 16:58:09 UTC

[jira] [Assigned] (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 reassigned USERGRID-77:
----------------------------------

    Assignee: Strong Liu

> 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)