Results 1 to 2 of 2

Thread: JdbcDaoImpl object properties query throws exception

  1. #1
    Join Date
    Dec 2004
    Location
    New York
    Posts
    30

    Default JdbcDaoImpl object properties query throws exception

    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:

    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 = ?";
    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.

    The new query looks like this:

    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 = ?";
    Is JIRA a more appropriate place for this type of post?

    Thanks for the great work on Acegi

    Dave

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Dave, thanks for the feedback. That bug had previously been identified and fixed. We'll be setting up some issue tracking via JIRA soon.

Similar Threads

  1. FlowExecutionStorage in a DB
    By cacho in forum Web Flow
    Replies: 7
    Last Post: Oct 19th, 2009, 03:36 PM
  2. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  3. Replies: 3
    Last Post: Sep 22nd, 2005, 10:14 AM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •