You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: