mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 19:09:08 +00:00
SEC-787: Consistently use lowercase in all ACL module SQL statements.
This commit is contained in:
parent
0df9dee9dd
commit
e7e256a9d5
@ -53,11 +53,11 @@ public class JdbcAclService implements AclService {
|
|||||||
//~ Static fields/initializers =====================================================================================
|
//~ Static fields/initializers =====================================================================================
|
||||||
|
|
||||||
protected static final Log log = LogFactory.getLog(JdbcAclService.class);
|
protected static final Log log = LogFactory.getLog(JdbcAclService.class);
|
||||||
private static final String selectAclObjectWithParent = "SELECT obj.object_id_identity obj_id, class.class class "
|
private static final String selectAclObjectWithParent = "select obj.object_id_identity obj_id, class.class class "
|
||||||
+ "FROM acl_object_identity obj, acl_object_identity parent, acl_class class "
|
+ "from acl_object_identity obj, acl_object_identity parent, acl_class class "
|
||||||
+ "WHERE obj.parent_object = parent.id AND obj.object_id_class = class.id "
|
+ "where obj.parent_object = parent.id and obj.object_id_class = class.id "
|
||||||
+ "AND parent.object_id_identity = ? AND parent.object_id_class = ("
|
+ "and parent.object_id_identity = ? and parent.object_id_class = ("
|
||||||
+ "SELECT id FROM acl_class WHERE acl_class.class = ?)";
|
+ "select id FROM acl_class where acl_class.class = ?)";
|
||||||
|
|
||||||
//~ Instance fields ================================================================================================
|
//~ Instance fields ================================================================================================
|
||||||
|
|
||||||
|
@ -62,23 +62,22 @@ public class JdbcMutableAclService extends JdbcAclService implements MutableAclS
|
|||||||
|
|
||||||
private boolean foreignKeysInDatabase = true;
|
private boolean foreignKeysInDatabase = true;
|
||||||
private AclCache aclCache;
|
private AclCache aclCache;
|
||||||
private String deleteClassByClassNameString = "DELETE FROM acl_class WHERE class=?";
|
private String deleteEntryByObjectIdentityForeignKey = "delete from acl_entry where acl_object_identity=?";
|
||||||
private String deleteEntryByObjectIdentityForeignKey = "DELETE FROM acl_entry WHERE acl_object_identity=?";
|
private String deleteObjectIdentityByPrimaryKey = "delete from acl_object_identity where id=?";
|
||||||
private String deleteObjectIdentityByPrimaryKey = "DELETE FROM acl_object_identity WHERE id=?";
|
|
||||||
private String identityQuery = "call identity()";
|
private String identityQuery = "call identity()";
|
||||||
private String insertClass = "INSERT INTO acl_class (class) VALUES (?)";
|
private String insertClass = "insert into acl_class (class) values (?)";
|
||||||
private String insertEntry = "INSERT INTO acl_entry "
|
private String insertEntry = "insert into acl_entry "
|
||||||
+ "(acl_object_identity, ace_order, sid, mask, granting, audit_success, audit_failure)"
|
+ "(acl_object_identity, ace_order, sid, mask, granting, audit_success, audit_failure)"
|
||||||
+ "VALUES (?, ?, ?, ?, ?, ?, ?)";
|
+ "values (?, ?, ?, ?, ?, ?, ?)";
|
||||||
private String insertObjectIdentity = "INSERT INTO acl_object_identity "
|
private String insertObjectIdentity = "insert into acl_object_identity "
|
||||||
+ "(object_id_class, object_id_identity, owner_sid, entries_inheriting) " + "VALUES (?, ?, ?, ?)";
|
+ "(object_id_class, object_id_identity, owner_sid, entries_inheriting) " + "values (?, ?, ?, ?)";
|
||||||
private String insertSid = "INSERT INTO acl_sid (principal, sid) VALUES (?, ?)";
|
private String insertSid = "insert into acl_sid (principal, sid) values (?, ?)";
|
||||||
private String selectClassPrimaryKey = "SELECT id FROM acl_class WHERE class=?";
|
private String selectClassPrimaryKey = "select id from acl_class where class=?";
|
||||||
private String selectObjectIdentityPrimaryKey = "SELECT acl_object_identity.id FROM acl_object_identity, acl_class "
|
private String selectObjectIdentityPrimaryKey = "select acl_object_identity.id from acl_object_identity, acl_class "
|
||||||
+ "WHERE acl_object_identity.object_id_class = acl_class.id and acl_class.class=? "
|
+ "where acl_object_identity.object_id_class = acl_class.id and acl_class.class=? "
|
||||||
+ "and acl_object_identity.object_id_identity = ?";
|
+ "and acl_object_identity.object_id_identity = ?";
|
||||||
private String selectSidPrimaryKey = "SELECT id FROM acl_sid WHERE principal=? AND sid=?";
|
private String selectSidPrimaryKey = "select id from acl_sid where principal=? and sid=?";
|
||||||
private String updateObjectIdentity = "UPDATE acl_object_identity SET "
|
private String updateObjectIdentity = "update acl_object_identity set "
|
||||||
+ "parent_object = ?, owner_sid = ?, entries_inheriting = ?" + " where id = ?";
|
+ "parent_object = ?, owner_sid = ?, entries_inheriting = ?" + " where id = ?";
|
||||||
|
|
||||||
//~ Constructors ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user