Noirtam commented on issue #15224: URL: https://github.com/apache/grails-core/issues/15224#issuecomment-3558216790
I created a new project to reproduce the issue: https://github.com/Noirtam/grails-grails702-issue15224 When I created the new project, I found the cause of the issue. See the constraints in the "UtilisateurRole" domain : ```groovy static constraints = { role validator: { Role r, UtilisateurRole ur -> if (ur.utilisateur?.id) { //Issue's cause : withNewSession UtilisateurRole.withNewSession { if (UtilisateurRole.exists(ur.utilisateur.id, r.id)) { return ['userRole.exists'] } } } } } ``` `UtilisateurRole.withNewSession` added to resolve "No session" error -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
