You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by "Thomas Vandahl (JIRA)" <ji...@apache.org> on 2009/11/22 20:54:39 UTC
[jira] Created: (TRB-76) The PeerManagers of the
TorqueSecurityService use the wrong database name in checkExists()
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
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TRB-76) The PeerManagers of the
TorqueSecurityService use the wrong database name in checkExists()
Posted by "Thomas Vandahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TRB-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Vandahl reassigned TRB-76:
---------------------------------
Assignee: Thomas Vandahl
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.