Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-76

The PeerManagers of the TorqueSecurityService use the wrong database name in checkExists()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • Core 2.3.3
    • None
    • Turbine 2.3
    • None

    Description

      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);

      Attachments

        Activity

          People

            tv Thomas Vandahl
            tv Thomas Vandahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: