Commit Graph

89 Commits

Author SHA1 Message Date
Rob Winch
ff1bd60719 Fix unstubbed Exception for spring-test-6.2.0 2024-11-15 16:20:05 -06:00
Marcus Hert Da Coregio
84f4afcaf1 Introduce RedisSessionExpirationStore
With this commit it is now possible to customize the expiration policy in RedisIndexedHttpSession

Closes gh-2906
2024-08-12 14:26:03 -03:00
Marcus Da Coregio
e65da12d82 Add ReactiveRedisIndexedSessionRepository
Closes gh-2700
2023-12-27 08:59:38 -03:00
Marcus Hert Da Coregio
587eb7bd9c Merge branch '3.1.x' into 3.2.x 2023-12-12 10:20:24 -03:00
Marcus Hert Da Coregio
bde989f543 Do not use mock for Rename Operation Exception Test
Issue gh-2645
2023-12-12 10:17:29 -03:00
Marcus Hert Da Coregio
8df96baef3 Merge branch '3.1.x' 2023-11-20 09:54:00 -03:00
Marcus Hert Da Coregio
8e3ea44d77 Try fixing flaky test by replacing BDDMockito with regular Mockito
Issue gh-2645
2023-11-20 09:53:13 -03:00
Marcus Da Coregio
4e63eae0aa Merge branch '3.1.x'
Closes gh-2530
2023-10-19 10:35:43 -03:00
Marcus Da Coregio
2b69cff478 Update spring-javaformat to 0.0.39
Closes gh-2528
2023-10-19 10:33:00 -03:00
Marcus Da Coregio
cf1827a56d Move tests to dynamic configuration tests
(cherry picked from commit bf5f04f40c)
2023-10-18 14:38:26 -03:00
Marcus Da Coregio
bf5f04f40c Move tests to dynamic configuration tests 2023-10-18 13:31:13 -03:00
Marcus Da Coregio
d1a4155190 Improve mocking on tests 2023-10-18 11:32:12 -03:00
Marcus Da Coregio
c90133890d Fix tests
Issue gh-2464
2023-10-16 12:01:04 -03:00
Marcus Da Coregio
5330cd4b06 Merge branch '3.1.x'
Closes gh-2472
2023-10-16 10:49:00 -03:00
Marcus Da Coregio
d6294a13a7 Merge branch '2.7.x' into 3.0.x
Closes gh-2470
2023-10-16 10:48:37 -03:00
Marcus Da Coregio
5614a7d765 Fix Reactive Redis Sessions Never Expiring
Prior to this commit, we were using Mono#and(Mono) to execute operations sequentially on Redis. However, the and(...) operator does not guarantee that the operations will run sequentially. This commit changes from Mono#and to Mono#flatMap

Closes gh-2464
2023-10-16 10:47:55 -03:00
Marcus Da Coregio
3fe23375de Allow Customizing Redis Session Mapper
Closes gh-2021
2023-10-04 11:34:09 -03:00
Marcus Da Coregio
ef733e048e Merge branch '2.7.x' into 3.0.x
Closes gh-2308
2023-06-06 15:23:47 -03:00
Marcus Da Coregio
ffe7fd39e6 Ignore failed rename operation when key does not exists in Reactive
Closes gh-2281
2023-06-06 15:23:19 -03:00
Marcus Da Coregio
41eb118940 Merge branch '2.7.x' into 3.0.x
Closes gh-2306
2023-06-06 15:21:32 -03:00
Marcus Da Coregio
180cf6275f Improve handling of failed rename operation
Consider messages that starts with "ERR no such key".
Some Redis clients like Redisson might change the message to include more details

Closes gh-1743
2023-06-06 15:19:58 -03:00
Eddú Meléndez
0dfc97289f Polish related to testcontainers
* Use getHost instead of getContainerIpAddress
* Rely on OracleContainer and it's improvements which involve the log
wait strategy
2023-01-23 13:47:59 -03:00
Vedran Pavic
2406ec8302 Fix SessionCreatedEvent handling in RedisIndexedSessionRepository
At present, RedisIndexedSessionRepository publishes a SessionCreatedEvent backed by an empty MapSession instance. This happens because session delta has been cleared before publishing a message to the session created channel.

Fixes gh-1338
2022-10-06 10:28:11 -05:00
Vedran Pavic
e050a92fad Restructure Redis HttpSession configuration support
This commit restructures configuration support for Redis-backed
HttpSession with aim to enable users to easily select the
SessionRepository implementation they prefer to use.

This is achieved by introducing [at]EnableRedisIndexedHttpSession
annotation that can be used to configure RedisIndexedSessionRepository,
while the existing [at]EnableRedisHttpSession will going forward
configure RedisSessionRepository as the SessionRepository implementation
used by Spring Session.

Additionally, this also introduces AbstractRedisHttpSessionConfiguration
as the base configuration class that manages common aspects of
Redis-backed HttpSession support, which is then extended by more
specific configuration classes that provide specific SessionRepository
implementation.

Closes gh-2122
2022-09-07 09:46:55 -05:00
Vedran Pavic
0c1dbc7355 Revert "Use simple Redis repository by default"
This reverts commit 8582b970

See gh-2122
2022-09-07 09:46:55 -05:00
Vedran Pavic
8e8de48614 Fix deprecation warnings 2022-09-06 15:27:53 -05:00
Vedran Pavic
9524730ab1 Update integration tests
This commit updates Docker images used in all the integration tests. Additionally, it updates JDBC session repository Oracle integration tests to run unconditionally.
2022-08-30 21:48:39 -05:00
Eleftheria Stein
221b48094a Upgrade test dependencies 2022-04-19 17:59:17 +02:00
Eleftheria Stein
d43b48bbb0 Revert "Upgrade test dependencies"
This reverts commit 2369b2cfb3.
2022-04-19 17:57:52 +02:00
Eleftheria Stein
2369b2cfb3 Upgrade test dependencies 2022-04-19 13:19:10 +02:00
Eleftheria Stein
8582b9706d Use simple Redis repository by default
Closes gh-1711
2022-04-14 13:17:28 +02:00
Ruslan Molchanov
cc5bb1f3a2 Fix memory leak with null principal in Redis 2022-01-20 09:52:44 +01:00
Ruslan Molchanov
81bd6bd261 Fix memory leak with null principal in Redis
Closes gh-1987
2022-01-19 17:31:35 +01:00
Eleftheria Stein
eb9f62a437 Update principal index on session ID change
Closes gh-1791
2021-10-14 17:49:56 +02:00
Eleftheria Stein
e17d0cc1d9 Upgrade test dependencies 2021-01-18 12:54:54 +01:00
Vedran Pavic
301e65c2b9 Remove unnecessary Redis commands in RedisIndexedSessionRepository#save
See: #1331
2020-10-12 10:13:38 -04:00
Eleftheria Stein-Kousathana
0cd0bfb32f Remove attribute key and value from Redis
Closes gh-1331
2020-07-24 12:55:26 +02:00
Vedran Pavic
b9fd3666b5 Update integration tests 2019-09-30 16:08:20 +02:00
Vedran Pavic
bd36e115a8 Align with spring-javaformat 0.0.15 2019-09-29 16:16:36 +02:00
Vedran Pavic
8cc8fbb7fd Harmonize naming of session repositories
Resolves: #1455
2019-09-22 21:47:53 +02:00
Vedran Pavic
8cb85618c2 Polish 2019-07-02 23:19:11 +02:00
Vedran Pavic
1ca9daccb4 Remove unnecessary throws declaration 2019-07-02 19:23:35 +02:00
Vedran Pavic
07b9433540 Add common flush mode support
Resolves: #1465
2019-06-24 19:11:12 +02:00
Vedran Pavic
822db7fbbf Use spring-javaformat to format and check code
Resolves: #1450
2019-06-17 23:54:41 +02:00
Vedran Pavic
17005c51a7 Add simple Redis SessionRepository implementation
See: #1408
2019-06-14 22:55:21 +02:00
Vedran Pavic
a4ff3682f6 Migrate tests to JUnit 5
Resolves: #1033
2019-06-06 20:57:45 +02:00
Vedran Pavic
566b388b2f Align Checkstyle config with Spring Boot 2019-06-03 16:49:08 +02:00
Vedran Pavic
78b72f2d1b Save reactive Redis session on subscribe
This commit ensures ReactiveRedisOperationsSessionRepository#save does work only after subscribe. Without this, multiple invocations of #save over the course of same request can lead to race condition situations.

Resolves: #1399
2019-06-02 19:02:13 +02:00
Vedran Pavic
52f59a83e4 Update integration tests 2019-05-31 23:31:01 +02:00
Vedran Pavic
856a9b2c51 Update integration tests 2019-04-09 21:24:55 +02:00