[jira] [Resolved] (SHIRO-469) Wrong description of JdbcRealm#setPermissionsQuery

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (SHIRO-469) Wrong description of JdbcRealm#setPermissionsQuery

Francois Papon (Jira)

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

Francois Papon resolved SHIRO-469.
----------------------------------
    Resolution: Resolved

> Wrong description of JdbcRealm#setPermissionsQuery
> --------------------------------------------------
>
>                 Key: SHIRO-469
>                 URL: https://issues.apache.org/jira/browse/SHIRO-469
>             Project: Shiro
>          Issue Type: Bug
>          Components: Realms
>    Affects Versions: 1.2.2
>            Reporter: Radek Skokan
>            Priority: Minor
>             Fix For: 1.5.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Javadoc for JdbcRealm#setPermissionsQuery says:
> "... and return a row
>      * per permission with three columns containing the fully qualified name of the permission class, the permission
>      * name, and the permission actions (in that order)..."
> However the DEFAULT_PERMISSIONS_QUERY returns just 1 column, the permission name:
> protected static final String DEFAULT_PERMISSIONS_QUERY = "select permission from roles_permissions where role_name = ?";



--
This message was sent by Atlassian Jira
(v8.3.4#803005)