shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Pyatigorskiy (JIRA)" <j...@apache.org>
Subject [jira] Created: (SHIRO-275) JdbcRealm.doGetAuthenticationInfo doesn't follow javadoc
Date Sun, 20 Feb 2011 06:24:38 GMT
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

        

Mime
View raw message