apache / apache/grails-core

ACL NotFoundException when objects exists in Database

Open
#15,927 2 comments 0 reactions 0 assignees View on GitHub
relates-to:spring-security
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Hello everyone,

He implemented the ACL and reviewed the example of Issue # 32, and after trying and testing I can not know what is going on with my code.

Implemented ACL in my project, in which I use Grails 3.3.2 and a MariaDB database

If we start the application and enter data, the data will be correctly registered in its corresponding ACL tables and in its corresponding domain class tables.

But, if we turn off the application and turn it on again, when we bring lists filtering them by ACL and these lists return more than one object, it returns the following exception:

`
Class org.springframework.security.acls.model.NotFoundException
Message null
Caused by Unable to find ACL information for object identity 'org.springframework.security.acls.domain.ObjectIdentityImpl[Type: com.sample.test.Proyecto; Identifier: 2]'`

Indicating that you can not find that information in the ACL, but this is not true because it does exist.

What's going on? Can anybody help me?

@sdelamo Can you help me?

Contributor guide

Open the contributing guide

Research direction

Start with the Grails 3.3.2 ACL configuration and the persisted ACL tables, then reproduce the failure after restarting the application while filtering a list. Compare the stored ACL identity for com.sample.test.Proyecto with the identity used by the query; done means identifying why the existing ACL is not found and documenting a verified fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, mariadb, spring
Domain
backend, databases, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.