spring-projects / spring-session

Spring Session
https://spring.io/projects/spring-session
Apache License 2.0
1.86k stars 1.11k forks source link

JsonDeserialize DefaultSavedRequest losing queryString field #1476

Open jackxu2011 opened 5 years ago

jackxu2011 commented 5 years ago

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

vpavic commented 4 years ago

@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?

jackxu2011 commented 4 years ago

@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