Hi:
I discovered what I think may be a typo in net.sf.acegisecurity.acl.basic.jdbc.JdbcDaoImpl. The default value for the object properties query is as follows:
Using MySQL 4 an SQL exception is thrown saying that the table parent doesn't exist. I got it to work by extending the class, overriding the object properties query string and changing parent.id to PARENT.id.Code:public static final String DEF_OBJECT_PROPERTIES_QUERY = "SELECT CHILD.ID, CHILD.OBJECT_IDENTITY, CHILD.ACL_CLASS, PARENT.OBJECT_IDENTITY as PARENT_OBJECT_IDENTITY FROM acl_object_identity as CHILD LEFT OUTER JOIN acl_object_identity as PARENT ON CHILD.parent_object=parent.id WHERE CHILD.object_identity = ?";
The new query looks like this:
Is JIRA a more appropriate place for this type of post?Code:public static final String DEF_OBJECT_PROPERTIES_QUERY = "SELECT CHILD.ID, CHILD.OBJECT_IDENTITY, CHILD.ACL_CLASS, PARENT.OBJECT_IDENTITY as PARENT_OBJECT_IDENTITY FROM acl_object_identity as CHILD LEFT OUTER JOIN acl_object_identity as PARENT ON CHILD.parent_object=PARENT.id WHERE CHILD.object_identity = ?";
Thanks for the great work on Acegi
Dave



