Audit Logs being associated with the wrong actor #226
-
Hi, I'm using this plugin with a Grails 4 project, and we're running into issues with some (~1.5%) records being attributed to the wrong actor. I've posted a question on stack overflow, but haven't gotten much traction from it, so I wanted to check here as well. Most of these records are actions done by methods called from event listeners. It appears that Hibernate may be piggy-backing the actions that are done by the subscriber onto another active session and incorrectly attributing the actor. Is that possible? This has been tricky to debug since most of the records are being correctly saved. I'm happy to provide more info as needed to help solve this. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, I remember that we had a problem with the principal being wrong occassionally because of the See grails/grails-spring-security-core#587 Have you changed the strategy by chance? |
Beta Was this translation helpful? Give feedback.
Hi, I remember that we had a problem with the principal being wrong occassionally because of the
SecurityContextHolder
strategy beingMODE_INHERITABLETHREADLOCAL
. They changed the default in Grails Spring Security Plugin version 3.2.1See grails/grails-spring-security-core#587
Have you changed the strategy by chance?