Thread unsafe current_user usage in Auth::DefaultCurrentUserProvider

I believe there is a thread unsafe usage of a model instance where it appears to be sent to another thread here and later accessed concurrently:

Please review this thread which discusses the issue and a possible fix:

I see …

Something like this I guess:

@daniel / @david / @tgxworld ?

It adds a new β€œfind” query once a minute, but I guess this is acceptable since it will not happen every single request. I kept the old interface in place.

Can not easily be tuned further without breaking the plugin interface which would be a bit of a nightmare.

3 Likes