spring-session icon indicating copy to clipboard operation
spring-session copied to clipboard

JsonDeserialize DefaultSavedRequest losing queryString field

Open jackxu2011 opened this issue 6 years ago • 2 comments

I using redis json session, the savedRequest lose queryString field when deserialize

jackxu2011 avatar Jul 15 '19 07:07 jackxu2011

@jackxu2011 From the description you've provided it's unclear to me what is the exact problem is - could you explain it in more details, and ideally provide a minimal sample that demonstrates the problem?

vpavic avatar Oct 03 '19 16:10 vpavic

@vpavic my problem show when using redis json session with oauth2-server. The oauth2 queryParams will missing after login. image

and using redis session without json is ok like bellow

@Slf4j
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 3200, redisFlushMode = RedisFlushMode.ON_SAVE,
    redisNamespace = "ladybug-session")
@Import({CommonConfig.class})
public class SessionConfig {

}

and i found the savedRequest with redis json have the field queryString in the redis, but the deserialize savedRequest's queryString is empty

jackxu2011 avatar Oct 09 '19 02:10 jackxu2011