1
0
mirror of synced 2026-08-05 17:57:15 +00:00

SEC-1107: Added test to attempt to reproduce issue.

This commit is contained in:
Luke Taylor
2009-04-27 10:21:31 +00:00
parent 530a7b5d21
commit d0a308c99b
4 changed files with 19 additions and 9 deletions
@@ -75,8 +75,7 @@ public class JdbcAclService implements AclService {
Object[] args = {parentIdentity.getIdentifier(), parentIdentity.getJavaType().getName()};
List<ObjectIdentity> objects = jdbcTemplate.query(selectAclObjectWithParent, args,
new RowMapper<ObjectIdentity>() {
public ObjectIdentity mapRow(ResultSet rs, int rowNum)
throws SQLException {
public ObjectIdentity mapRow(ResultSet rs, int rowNum) throws SQLException {
String javaType = rs.getString("class");
Long identifier = new Long(rs.getLong("obj_id"));
@@ -143,8 +143,7 @@ public class JdbcMutableAclService extends JdbcAclService implements MutableAclS
protected void createObjectIdentity(ObjectIdentity object, Sid owner) {
Long sidId = createOrRetrieveSidPrimaryKey(owner, true);
Long classId = createOrRetrieveClassPrimaryKey(object.getJavaType(), true);
jdbcTemplate.update(insertObjectIdentity,
new Object[] {classId, object.getIdentifier().toString(), sidId, new Boolean(true)});
jdbcTemplate.update(insertObjectIdentity, classId, object.getIdentifier().toString(), sidId, Boolean.TRUE);
}
/**