131 Commits

Author SHA1 Message Date
Yanming Zhou
a965117ab4 Polish usage of spring-boot-testcontainers
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-04-22 15:05:42 -05:00
Rob Winch
6fd52ca662 Extract JdbcJsonSpecialCharsAttributeTests
Signed-off-by: Rob Winch <362503+rwinch@users.noreply.github.com>
2025-04-22 13:54:50 -05:00
Rüdiger Schulz
d295bff7cb #3299: use postgres function convert_from() instead of encode() to insert JSON byte stream into PreparedStatement.
This works with session attributes containing special characters in the JSON blob.
2025-04-22 13:54:50 -05:00
Rüdiger Schulz
3b7d9f3baa #3299: adjust test so that it fails when username contains a special character 2025-04-22 13:54:50 -05:00
Rob Winch
b31196de82 Update to Spring Boot 3.5.0
- Update to Spring Boot 3.5.0
- Update to Spring Boot 3.5.0's dependencies

Closes gh-3368
2025-04-04 16:43:55 -05:00
Rob Winch
0962591e43 Explicitly use junit-platform-launcher and junit-jupiter-engine
Closes gh-3367
2025-04-04 16:43:46 -05:00
Marcus Hert Da Coregio
d816bb1002 Merge branch '3.2.x' into 3.3.x 2024-08-21 08:43:21 -03:00
Marcus Hert Da Coregio
ad333a49af Bump io.spring.javaformat:spring-javaformat-checkstyle from 0.0.42 to 0.0.43 2024-08-21 08:43:05 -03:00
Marcus Hert Da Coregio
1d5dae80d1 Merge branch '3.2.x' into 3.3.x
Closes gh-3015
2024-06-04 15:49:25 -03:00
Marcus Hert Da Coregio
d5daa283f7 Add instructions if object is not deserialized into the right type
Closes gh-3009
2024-06-04 15:47:54 -03:00
Marcus Hert Da Coregio
6d6f59c5fd Merge branch '3.2.x'
Closes gh-2827 in 3.2.x in 3.3.x
Closes gh-2832
2024-03-01 15:38:34 -03:00
Marcus Hert Da Coregio
ea14c336a9 Merge branch '3.1.x' into 3.2.x
Closes gh-2827 in 3.2.x
Closes gh-2831
2024-03-01 15:37:35 -03:00
Marcus Hert Da Coregio
c2a982c4a7 Add JDBC to Configurations section
Closes gh-2827

Closes gh-2829
2024-03-01 15:37:13 -03:00
Marcus Hert Da Coregio
223a90ffbb Add SpringSessionBackedReactiveSessionRegistry
Closes gh-2824
2024-02-28 14:55:43 -03:00
Marcus Da Coregio
e65da12d82 Add ReactiveRedisIndexedSessionRepository
Closes gh-2700
2023-12-27 08:59:38 -03:00
Marcus Hert Da Coregio
ea69e35f2c Merge branch '3.1.x' 2023-11-27 10:42:47 -03:00
Marcus Hert Da Coregio
f9b321c429 Fix tests 2023-11-27 10:42:39 -03:00
Marcus Hert Da Coregio
d759eb5a3a Merge branch '3.1.x' 2023-11-27 09:40:45 -03:00
Marcus Hert Da Coregio
aa9e18f8c5 Use Version Catalog in Samples, Build Files and Plugins 2023-11-27 09:33:26 -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
27782d659b Merge branch '3.1.x'
Closes gh-2492
2023-10-18 11:07:52 -03:00
Marcus Da Coregio
047839e3f2 Use Gradle Version Catalog
Closes gh-2490
2023-10-18 11:01:56 -03:00
Yanming Zhou
11ce4b4561 Polishing
1. fix deprecations
2. fix generics
3. use lambda instead of anonymous class
4. mark some fields as final
2023-10-03 10:24:29 -03:00
Yanming Zhou
b1a1b62914 Use spring-boot's @ServiceConnection 2023-09-01 13:40:02 -03:00
Marcus Da Coregio
b2615c2010 Merge branch '3.1.x'
Closes gh-2390
2023-07-24 14:55:19 -03:00
Marcus Da Coregio
12d08e21bf Upgrade to Gradle 8.2.1
Closes gh-2388
2023-07-24 14:54:34 -03:00
Marcus Da Coregio
e7c4eae6c9 Remove httpclient dependency from sample 2023-07-18 13:27:22 -03:00
Marcus Da Coregio
4847458879 Add Using Redis
Closes gh-2303
2023-05-23 15:13:20 -03:00
Marcus Da Coregio
f8c1fdb250 Fix javaconfig-rest sample dependency 2023-04-06 14:02:12 -03:00
Marcus Da Coregio
07b1982690 Revert "Remove spring-session-sample-javaconfig-rest"
This reverts commit b229103d8c.

Closes gh-2259
2023-04-06 14:02:12 -03:00
Marcus Da Coregio
8f9c69ea02 Add jakarta.servlet.jsp.jstl-api to non Spring Boot samples
Closes gh-2216
2022-12-01 09:07:19 -03:00
Rob Winch
b229103d8c Remove spring-session-sample-javaconfig-rest
Works around a compatability issue for now.

Issue gh-2201
2022-11-09 12:44:31 -06:00
Vedran Pavic
e5eeacec5f Update security config in samples
This commit updates security configuration in samples to:

- use AuthorizationFilter instead of FilterSecurityInterceptor
- update session creation policy in REST sample
2022-10-25 14:27:39 -05:00
Vedran Pavic
fb66cf3150 Remove @Configuration meta-annotation from @Enable*Session annotations
Closes gh-1361
2022-09-22 16:13:16 -05:00
Vedran Pavic
a23090e7e5 Fix "Find by Username" sample
Spring Boot's auto-configuration support for Spring Session now uses RedisSessionRepository as the default Redis session repository, so applications that rely on indexed session repository need to opt into the previous default. One such example is our "Find by Username" sample.

This commit fixes "Find by Username" sample by opting into the indexed repository type using newly introduced spring.session.redis.repository-type property.
2022-09-22 14:33:52 -05:00
Vedran Pavic
cb6f5c9588 Align dependency versions in samples
This commit aligns dependency versions used across different samples application by leveraging Spring Boot's BOM, rather than manually managing dependency versions for samples that are not Spring Boot based.
2022-09-20 10:58:05 -05:00
Vedran Pavic
4e311939c2 Use Spring Security auto-configuration in MongoDB samples 2022-09-20 10:58:05 -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
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
Vedran Pavic
38a87e093a Disable Hazelcast network join auto-detection in tests
At present, Hazelcast configurations used in tests disable multicast join but leave network join auto-detection enabled. This can cause issues with parallel test execution on machines that have bigger number of CPU cores/threads.

This commit updates Hazelcast configurations used in tests to disable network join auto-detection and thus ensure no network join method ends up being enabled.
2022-08-19 13:33:21 -05:00
Vedran Pavic
de57f2cd14 Remove deprecated code in spring-session-data-redis 2022-08-19 13:31:44 -05:00
Vedran Pavic
b85ec4de1a Fix Spring Security configuration in tests
As of spring-projects/spring-security#11653, Spring Security's [at]Enable*Security annotations are not meta annotated with [at]Configuration which breaks some of our tests.

This commit adds missing [at]Configuration annotations where needed.

Closes gh-2118
2022-08-19 11:20:04 -05:00
Marcus Da Coregio
00d248b0b5 Fix failing tests
Issue gh-2107
2022-07-08 11:07:02 -03:00
Rob Winch
3ce78f6cd0 Fix formatting 2022-05-13 17:49:29 -05:00
Rob Winch
d23b81f300 Fix spring-session-sample-boot-mongodb-traditional 2022-05-13 17:36:52 -05:00
Rob Winch
f33c5fe19a Fix spring-session-sample-boot-websocket 2022-05-13 17:36:52 -05:00
Rob Winch
e1c4b25671 Fix spring-session-sample-boot-hazelcast 2022-05-13 17:36:52 -05:00
Rob Winch
9bf18059d2 Fix xpring-session-sample-boot-jdbc 2022-05-13 17:36:52 -05:00