[
https://issues.apache.org/jira/browse/TRB-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17809802#comment-17809802
]
Georg Kallidis commented on TRB-76:
-----------------------------------
[Closeable] Code moved in Turbine 4+ to Fulcrum Security, superseded by methods
with arguments, e.g checkExists(String).
> The PeerManagers of the TorqueSecurityService use the wrong database name in
> checkExists()
> ------------------------------------------------------------------------------------------
>
> Key: TRB-76
> URL: https://issues.apache.org/jira/browse/TRB-76
> Project: Turbine
> Issue Type: Bug
> Components: Turbine 2.3
> Affects Versions: Core 2.3.3
> Reporter: Thomas Vandahl
> Assignee: Thomas Vandahl
> Priority: Critical
>
> In the *PeerManager classes, the checkExists() method uses the following code:
> Criteria criteria = new Criteria();
> criteria.addSelectColumn(getIdColumn());
> criteria.add(getNameColumn(), group.getName());
> List results = BasePeer.doSelect(criteria);
> This leads to errors when the database used for the security classes is not
> the default database.
> The code should read:
> Criteria criteria = new Criteria();
> criteria.add(getNameColumn(), group.getName());
> List results = doSelect(criteria);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)