Hi, i need some help with acegi authorization
I've implemented both tables as it is said in acegi ref. guide, and populate with records, but i can't make it work, it finds the secured object (classname:id), but i have this error : there's "0 AclEntrys for domain object"
How should i bind the acls records and the user objects?
I have a user with username=test
and 2 acl records,
INSERT INTO acl_object_identity VALUES (1, 'ar.uba.fi.sase.documentos.Expediente:1', null, 'org.acegisecurity.acl.basic.SimpleAclEntry');
INSERT INTO acl_permission VALUES (1, 1,'test',6);
Pherhaps i'm missing some part,.....
Code:080-Processor24 org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'aclManager' DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.BasicAclProvider - domainInstance: ar.uba.fi.sase.documentos.ExpedienteImpl@2ee45 attempting to pass to constructor: public org.acegisecurity.acl.basic.NamedEntityObjectIdentity(java.lang.Object) throws java.lang.IllegalAccessException,java.lang.reflect.InvocationTargetException DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.BasicAclProvider - domainInstance: ar.uba.fi.sase.documentos.ExpedienteImpl@2ee45 attempting to pass to constructor: public org.acegisecurity.acl.basic.NamedEntityObjectIdentity(java.lang.Object) throws java.lang.IllegalAccessException,java.lang.reflect.InvocationTargetException DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.BasicAclProvider - obtainIdentity returned org.acegisecurity.acl.basic.NamedEntityObjectIdentity[Classname: ar.uba.fi.sase.documentos.ExpedienteImpl; Identity: 1] DEBUG http-8080-Processor24 org.acegisecurity.acl.AclProviderManager - ACL lookup using org.acegisecurity.acl.basic.BasicAclProvider DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.BasicAclProvider - domainInstance: ar.uba.fi.sase.documentos.ExpedienteImpl@2ee45 attempting to pass to constructor: public org.acegisecurity.acl.basic.NamedEntityObjectIdentity(java.lang.Object) throws java.lang.IllegalAccessException,java.lang.reflect.InvocationTargetException DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.BasicAclProvider - Looking up: org.acegisecurity.acl.basic.NamedEntityObjectIdentity[Classname: ar.uba.fi.sase.documentos.ExpedienteImpl; Identity: 1] DEBUG http-8080-Processor24 org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query DEBUG http-8080-Processor24 org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [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 = ?] DEBUG http-8080-Processor24 org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource DEBUG http-8080-Processor24 org.springframework.jdbc.datasource.DriverManagerDataSource - Creating new JDBC Connection to [jdbc:mysql://localhost/sase?createDatabaseIfNotExist=true] DEBUG http-8080-Processor24 org.springframework.jdbc.core.StatementCreatorUtils - Setting SQL statement parameter value: column index 1, parameter value [ar.uba.fi.sase.documentos.ExpedienteImpl:1], value class [java.lang.String], SQL type 12 DEBUG http-8080-Processor24 org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: ----- ................................ (0) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: A---- ...............................1 (1) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: -R--- ..............................1. (2) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: --W-- .............................1.. (4) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: -RW-- .............................11. (6) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: ---C- ............................1... (8) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: -RWC- ............................111. (14) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: ----D ...........................1.... (16) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: -RW-D ...........................1.11. (22) DEBUG http-8080-Processor24 org.acegisecurity.acl.basic.AbstractBasicAclEntry - Valid permission: -RWCD ...........................1111. (30) DEBUG http-8080-Processor24 org.acegisecurity.taglibs.authz.AclTag - Authentication: 'org.acegisecurity.providers.UsernamePasswordAuthenticationToken@a3afa3b7: Username: ar.uba.fi.sase.usuarios.UsuarioImpl@3644b1; Password: [PROTECTED]; Authenticated: true; Details: org.acegisecurity.ui.WebAuthenticationDetails@0: RemoteIpAddress: 127.0.0.1; SessionId: 6F164881B1B67BE763511682895413A1; Granted Authorities: ar.uba.fi.sase.usuarios.MyGrantedAuthorityImpl@5c505c50' has: 0 AclEntrys for domain object: 'ar.uba.fi.sase.documentos.ExpedienteImpl@2ee45' from AclManager: 'org.acegisecurity.acl.AclProviderManager@302e302e' DEBUG http-8080-Processor24 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SASEE] - Disabling the response for futher output DEBUG http-8080-Processor24 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SASEE] - The Response is vehiculed using a wrapper: org.acegisecurity.context.HttpSessionContextIntegrationFilter$OnRedirectUpdateSessionResponseWrapper DEBUG http-8080-Processor24 org.springframework.web.servlet.view.JstlView - Forwarded to resource [/pages/misExpedientes/expedientesDetenidosEnUnidad.jsp] in InternalResourceView 'misExpedientes/expedientesDetenidosEnUnidad' DEBUG http-8080-Processor24 org.springframework.web.servlet.DispatcherServlet - Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@3ffe3ffe DEBUG http-8080-Processor24 org.springframework.web.servlet.DispatcherServlet - Successfully completed request


