You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Ilya Pyatigorskiy (JIRA)" <ji...@apache.org> on 2011/02/20 07:24:38 UTC

[jira] Created: (SHIRO-275) JdbcRealm.doGetAuthenticationInfo doesn't follow javadoc

JdbcRealm.doGetAuthenticationInfo doesn't follow javadoc
--------------------------------------------------------

                 Key: SHIRO-275
                 URL: https://issues.apache.org/jira/browse/SHIRO-275
             Project: Shiro
          Issue Type: Improvement
          Components: Realms 
    Affects Versions: 1.1.0
            Reporter: Ilya Pyatigorskiy
            Priority: Minor


This was discussed on the mailing list and my point is:

The javadoc says "A null return value means that no account could be associated with the specified token." and "@throws org.apache.shiro.authc.AuthenticationException if there is an error acquiring data or performing realm-specific authentication logic for the specified <tt>token</tt>". The only way that would be acceptable is if we say that no user in the database is "an error acquiring data" which seems a bit stretched.

This causes confusion and may result in errors for someone implementing a Strategy or Authenticator who would not expect such behaviour.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira