Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange/inaccurate permissions check results on some queries for servers with apcu extension enabled #1534

Closed
zerocrates opened this issue Apr 6, 2020 · 0 comments
Assignees

Comments

@zerocrates
Copy link
Member

Two reports on the forums: https://forum.omeka.org/t/item-s-not-found/10268 and some from other sources.

The issue is the Doctrine query cache: it doesn't play nicely with the SQL filters we use to handle permission checking at the query level. The "array" cache works fine because it is refreshed for each request and therefore only has the context of a single user, but with the apcu cache, the SQL used for a particular DQL can get "stuck" with the wrong user's permissions.

Doctrine doesn't have any great options at the moment for us to keep the filter and the cache: filters are assumed by the caching system to be static in their operation.

Temporary solution: force the query cache to use the "array" implementation for all users, even those with apcu installed.

@zerocrates zerocrates self-assigned this Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant