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
I have created a custom Session serializer which implements SessionSerializer and that is declared as bean mySessionSerializer.
But I cannot use it with : grails.plugin.cookiesession.serializer='mySessionSerializer'
The reason is that it seems that there is a bug in CookieSessionRepository.groovy, in line :
Indeed, the test "applicationContext.getType(serializer) instanceof SessionSerializer" is never 'true'.
It is even not 'true' for the 'javaSessionSerializer' :
"applicationContext.getType('javaSessionSerializer') instanceof SessionSerializer" is 'false'
My two cents is that the test should be :
"applicationContext.getBean(serializer) instanceof SessionSerializer", which returns 'true' as expected
The text was updated successfully, but these errors were encountered:
Hello,
I have created a custom Session serializer which implements
SessionSerializer
and that is declared as beanmySessionSerializer
.But I cannot use it with :
grails.plugin.cookiesession.serializer='mySessionSerializer'
The reason is that it seems that there is a bug in
CookieSessionRepository.groovy
, in line :else if( applicationContext.containsBean(serializer) && applicationContext.getType(serializer) instanceof SessionSerializer ){
Indeed, the test "
applicationContext.getType(serializer) instanceof SessionSerializer
" is never 'true'.It is even not 'true' for the '
javaSessionSerializer
' :"
applicationContext.getType('javaSessionSerializer') instanceof SessionSerializer
" is 'false'My two cents is that the test should be :
"
applicationContext.getBean(serializer) instanceof SessionSerializer
", which returns 'true' as expectedThe text was updated successfully, but these errors were encountered: