Spring Operator
3af1327474
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* [ ] http://www.puppycrawl.com/dtds/configuration_1_3.dtd (404) with 1 occurrences migrated to:
https://www.puppycrawl.com/dtds/configuration_1_3.dtd ([https](https://www.puppycrawl.com/dtds/configuration_1_3.dtd ) result 404).
* [ ] http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ) result 404).
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://www.hazelcast.com/schema/config/hazelcast-config-3.9.xsd with 3 occurrences migrated to:
https://www.hazelcast.com/schema/config/hazelcast-config-3.9.xsd ([https](https://www.hazelcast.com/schema/config/hazelcast-config-3.9.xsd ) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 9 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd ) result 200).
* [ ] http://www.springframework.org/schema/context/spring-context.xsd with 7 occurrences migrated to:
https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd ) result 200).
* [ ] http://www.springframework.org/schema/jdbc/spring-jdbc.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ([https](https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ) result 200).
* [ ] http://www.springframework.org/schema/security/spring-security.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/security/spring-security.xsd ([https](https://www.springframework.org/schema/security/spring-security.xsd ) result 200).
* [ ] http://www.springframework.org/schema/util/spring-util-4.1.xsd with 2 occurrences migrated to:
https://www.springframework.org/schema/util/spring-util-4.1.xsd ([https](https://www.springframework.org/schema/util/spring-util-4.1.xsd ) result 200).
* [ ] http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd with 2 occurrences migrated to:
https://java.sun.com/xml/ns/javaee/web-app_3_0.xsd ([https](https://java.sun.com/xml/ns/javaee/web-app_3_0.xsd ) result 302).
These URLs were intentionally ignored.
* http://java.sun.com/xml/ns/javaee with 4 occurrences
* http://www.hazelcast.com/schema/config with 6 occurrences
* http://www.springframework.org/schema/beans with 18 occurrences
* http://www.springframework.org/schema/context with 14 occurrences
* http://www.springframework.org/schema/jdbc with 2 occurrences
* http://www.springframework.org/schema/p with 5 occurrences
* http://www.springframework.org/schema/security with 4 occurrences
* http://www.springframework.org/schema/util with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 14 occurrences
2019-04-01 10:42:51 -05:00
Spring Operator
e296702da1
URL Cleanup ( #1392 )
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* [ ] http://www.ultraq.net.nz/thymeleaf/layout (302) with 12 occurrences migrated to:
https://github.com/ultraq/thymeleaf-layout-dialect ([https](https://www.ultraq.net.nz/thymeleaf/layout ) result ConnectTimeoutException).
* [ ] http://192.168.1.100:8080/ (AnnotatedConnectException) with 1 occurrences migrated to:
https://192.168.1.100:8080/ ([https](https://192.168.1.100:8080/ ) result ConnectTimeoutException).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://docs.hazelcast.org/docs/ with 8 occurrences migrated to:
https://docs.hazelcast.org/docs/ ([https](https://docs.hazelcast.org/docs/ ) result 200).
* [ ] http://docs.spring.io/spring-data/data-redis/docs/current/reference/html/ with 1 occurrences migrated to:
https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/ ([https](https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/ ) result 200).
* [ ] http://docs.spring.io/spring-session/docs/current/reference/html5/ with 1 occurrences migrated to:
https://docs.spring.io/spring-session/docs/current/reference/html5/ ([https](https://docs.spring.io/spring-session/docs/current/reference/html5/ ) result 200).
* [ ] http://infinispan.org/docs/dev/user_guide/user_guide.html with 1 occurrences migrated to:
https://infinispan.org/docs/dev/user_guide/user_guide.html ([https](https://infinispan.org/docs/dev/user_guide/user_guide.html ) result 200).
* [ ] http://logback.qos.ch/manual/groovy.html with 1 occurrences migrated to:
https://logback.qos.ch/manual/groovy.html ([https](https://logback.qos.ch/manual/groovy.html ) result 200).
* [ ] http://projects.spring.io/spring-session/ with 1 occurrences migrated to:
https://projects.spring.io/spring-session/ ([https](https://projects.spring.io/spring-session/ ) result 200).
* [ ] http://redis.io/commands/expire with 1 occurrences migrated to:
https://redis.io/commands/expire ([https](https://redis.io/commands/expire ) result 200).
* [ ] http://redis.io/commands/hmset with 1 occurrences migrated to:
https://redis.io/commands/hmset ([https](https://redis.io/commands/hmset ) result 200).
* [ ] http://redis.io/topics/data-types with 1 occurrences migrated to:
https://redis.io/topics/data-types ([https](https://redis.io/topics/data-types ) result 200).
* [ ] http://redis.io/topics/notifications with 2 occurrences migrated to:
https://redis.io/topics/notifications ([https](https://redis.io/topics/notifications ) result 200).
* [ ] http://stackoverflow.com with 1 occurrences migrated to:
https://stackoverflow.com ([https](https://stackoverflow.com ) result 200).
* [ ] http://stackoverflow.com/tags/spring-session with 1 occurrences migrated to:
https://stackoverflow.com/tags/spring-session ([https](https://stackoverflow.com/tags/spring-session ) result 200).
* [ ] http://www.thymeleaf.org with 12 occurrences migrated to:
https://www.thymeleaf.org ([https](https://www.thymeleaf.org ) result 200).
* [ ] http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-3.dtd with 5 occurrences migrated to:
https://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-3.dtd ([https](https://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-3.dtd ) result 200).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
https://contributor-covenant.org ([https](https://contributor-covenant.org ) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/ ) result 301).
* [ ] http://docs.spring.io/spring/docs/current/spring-framework-reference/html/spring-data-tier.html with 2 occurrences migrated to:
https://docs.spring.io/spring/docs/current/spring-framework-reference/html/spring-data-tier.html ([https](https://docs.spring.io/spring/docs/current/spring-framework-reference/html/spring-data-tier.html ) result 301).
* [ ] http://www.maxmind.com with 2 occurrences migrated to:
https://www.maxmind.com ([https](https://www.maxmind.com ) result 302).
# Ignored
These URLs were intentionally ignored.
* http://java.sun.com/jsp/jstl/core with 8 occurrences
* http://localhost with 15 occurrences
* http://localhost:8080/ with 31 occurrences
* http://localhost:8080/h2-console/ with 3 occurrences
* http://localhost:8080/logout with 1 occurrences
* http://localhost:8080/test/index with 2 occurrences
* http://localhost:xxxxx/hazelcast/rest/maps/spring:session:sessions/7e8383a4-082c-4ffe-a4bc-c40fd3363c5e with 1 occurrences
* http://www.w3.org/1999/xhtml with 5 occurrences
* http://www.webjars.org/tags with 8 occurrences
2019-04-01 10:22:01 -05:00
Spring Operator
61bea92e83
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://www.apache.org/licenses/ with 1 occurrences migrated to:
https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/ ) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 with 264 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0 ) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.html with 1 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0.html ([https](https://www.apache.org/licenses/LICENSE-2.0.html ) result 200).
2019-03-14 20:38:58 -05:00
Vedran Pavic
01c49c145b
Ignore failed rename operation for deleted session
...
In scenario with concurrent requests attempting to change session id, the "ERR no such key" error will occur for a thread that comes in second. This commit addresses the problem by ignoring the aforementioned error.
Resolves : #1327
2019-01-29 21:51:34 +01:00
Vedran Pavic
d6dc0f5cdd
Update integration tests
2019-01-10 16:37:30 +01:00
Jeff
0a3dbfa43e
Fix RedisOperationsSessionRepository javadoc typos
...
Resolves : #1275
2018-12-04 20:07:48 +01:00
Vedran Pavic
7c6b143964
Ensure RedisHttpSessionConfiguration handles events for configured database
...
At present, RedisHttpSessionConfiguration doesn't take into account database index when handlng events. In situations where multiple apps use Spring Session with same Redis instance, but different database, this results in invalid session events.
This commits improves event handling in RedisHttpSessionConfiguration to ensure currently used database is considered.
Closes gh-1193
2018-09-13 18:23:59 +02:00
Vedran Pavic
ff10709f18
Polish
...
See gh-1185
2018-09-10 17:16:31 +02:00
Vedran Pavic
7e8f500df0
Verify session existence before update in ReactiveRedisOperationsSessionRepository
...
Currently, ReactiveRedisOperationsSessionRepository#save does not ensure session's existence before executing update. This can result in an invalid session record in Redis, since write use only delta, and in turn to error while retrieving the invalid session record.
This commit adds check for session existence if session is being updated.
Closes gh-1185
2018-09-10 00:04:06 +02:00
Vedran Pavic
af44e71af0
Update integration tests
2018-09-06 18:05:32 +02:00
Vedran Pavic
1079e9e016
Ignore failed rename operation for deleted session
...
Attempting to change session id for a deleted session currently results in "ERR no such key" error on rename operation of expired key. This commit addressed the problem by ignoring the aforementioned error.
Closes #1177
2018-09-04 23:18:07 +02:00
Vedran Pavic
c8f78e510e
Upgrade spring-build-conventions to 0.0.18.RELEASE
2018-08-24 23:59:12 +02:00
Vedran Pavic
3d2a742328
Use Spring Java Format Checkstyle
...
Closes gh-1113
2018-07-23 15:16:35 +02:00
Vedran Pavic
7ac6e458e0
Update integration tests
2018-07-23 12:15:14 +02:00
Vedran Pavic
936fc853df
Ensure Session#getAttributeNames implementations return a copy
...
Currently, Session#getAttributeNames implementations, by delegating to MapSession, all return a session attribute map's key set. This causes ConcurrentModificationException when an attempt to modify session attributes is made while iterating over the returned attribute names.
Closes gh-1120
2018-07-17 15:05:03 +02:00
Vedran Pavic
63f105082a
Optimize Redis integration tests
...
This commit ensures that Redis Testcontainers used for integration testing are managed by Spring to ensure proper ordering on shutdown.
Previously, Redis Testcontainer was closed before LettuceConnectionFactory which caused pending commands to hang and added a lot of wait to project build.
Closes gh-1086
2018-06-01 11:50:01 +02:00
Vedran Pavic
941fdb46f2
Replace use of Test.expected with AssertJ
...
See gh-1032
2018-05-04 18:05:38 +02:00
Vedran Pavic
1d1253e643
Rename expiration key on changeSessionId in RedisOperationsSessionRepository
...
This commit ensures existing expiration key is renamed on changeSessionId operation in RedisOperationsSessionRepository. Previously, this key wasn't renamed which caused invalid invocations of SessionDestroyedEvent handling when key expired.
Closes gh-1029
2018-04-20 23:08:50 +02:00
Vedran Pavic
6c2f6c26cc
Update integration tests
...
- upgrade TestContainers to 1.7.1
- update Docker images
- improve MariaDB/MySQL tests to use UTF-8
Closes gh-1034
2018-04-20 14:10:52 +02:00
Vedran Pavic
91b4efc5bd
Fix attribute mapping in ReactiveRedisOperationsSessionRepository
...
This commit ensures that attributes with null values are correctly mapped to session on retrieval from Redis.
Closes gh-1035
2018-04-19 15:31:08 +02:00
Vedran Pavic
62bfeb3f05
Fix ReactiveRedisOperationsSessionRepository tests
2018-04-19 11:08:45 +02:00
Vedran Pavic
5173026aa8
Improve RedisOperationsSessionRepository tests
2018-04-16 08:52:43 +02:00
Vedran Pavic
a780ee0264
Replace use of ExpectedException rule with AssertJ
...
Closes gh-1032
2018-03-31 08:32:16 +02:00
Vedran Pavic
17ee9d51f2
Update integration tests
...
This commit updates TestContainers dependency and versions of Docker images used in integration tests.
2018-02-12 19:07:59 +01:00
Vedran Pavic
175e05dcda
Update integration tests
...
This commit updates TestContainers dependency and versions of Docker images used in integration tests.
2018-01-25 16:02:01 +01:00
Vedran Pavic
ffa1bca898
Update Redis configuration to use bean classloader
...
Spring Session 2.0 made changes to Redis configuration facilities so that the `RedisTemplate` used by `RedisOperationsSessionRepository` isn't exposed as a bean anymore. This has a consequence that bean `ClassLoader` isn't applied automatically which causes issues in Spring Boot applications that use DevTools.
This commit restores the previous behavior by updating Redis configuration classes to implement `BeanClassLoaderAware` callback and apply the application `ClassLoader` to `RedisTemplate`. The analogous change was made to reactive Redis configuration.
Closes gh-968
2018-01-18 22:27:02 +01:00
Johnny Lim
79ccbe7066
Polish
...
See gh-965
2018-01-08 17:38:06 +01:00
Vedran Pavic
1edce117aa
Fix Redis change session id handling
...
This commit updates logic around changing session id in `RedisOperationsSessionRepository` to properly handle updates for new sessions i.e. ones that haven't been saved yet.
Previously, the logic skipped both Redis rename operation and replacement of session id within the current session holder object, which led to no such key errors on subsequent save operation which still observed the session id as changed.
Closes gh-962
2018-01-05 12:52:12 +01:00
Vedran Pavic
c0f4c7f381
Fix reactive Redis change session id handling
...
This commit updates logic around changing session id in `ReactiveRedisOperationsSessionRepository` to properly handle updates for new sessions i.e. ones that haven't been saved yet.
Previously, the logic skipped both Redis rename operation and replacement of session id within the current session holder object, which led to no such key errors on subsequent save operation which still observed the session id as changed.
Closes gh-954
2018-01-05 12:22:28 +01:00
Vedran Pavic
c4daeff3d8
Update integration tests
...
This commit updates TestContainers dependency and versions of Docker images used in integration tests.
2018-01-02 21:42:22 +01:00
Vedran Pavic
6a370b1ef8
Refactor Redis configuration
...
Closes gh-941
2017-11-27 22:21:40 +01:00
Vedran Pavic
6188fe68b7
Improve session event handling
...
This commit removes constructor that takes session id instead of session object for the entire `AbstractSessionEvent` hierarchy.
The ability to create `AbstractSessionEvent` instances with no underlying session object leads to NPE when interacting with `HttpSession` obtained from `HttpSessionEvent`.
See gh-499
Closes gh-939
2017-11-27 22:21:40 +01:00
Vedran Pavic
17e56dda18
Polish configuration classes
2017-11-26 12:21:32 +01:00
Vedran Pavic
36d157a658
Polish default Redis namespace handling
...
See gh-919
2017-11-20 09:12:53 +01:00
Vedran Pavic
f28ab07b9a
Migrate SpringJUnit4ClassRunner -> SpringRunner
2017-11-20 08:08:00 +01:00
Vedran Pavic
36d349f328
Polish contribution
...
Closes gh-919
2017-11-13 20:59:39 +01:00
Luís Duarte
5f23a41674
Make Redis namespace fully configurable
...
See gh-919
2017-11-10 22:23:25 +01:00
Vedran Pavic
7e26897ec2
Add support for configuring Redis session cleanup cron
2017-10-30 01:33:36 -05:00
Vedran Pavic
fe3f40c6f4
Harmonize Redis configurations
...
This commit improves reactive Redis configuration by adding support for connection factory qualifier and Redis operations resolver annotations.
2017-10-27 13:54:25 +02:00
Vedran Pavic
f8583bb02f
Add missing @Override
2017-10-27 09:59:55 +02:00
Vedran Pavic
5df555cd53
Polish
2017-10-27 09:59:51 +02:00
Vedran Pavic
2ecb2e60c0
Improve Redis configuration
...
This commit improves Redis configuration by introducing `@SpringSessionRedisConnectionFactory` qualifier for explicitly declaring a `RedisConnectionFactory` to be used by Spring Session. This is in particular useful in scenarios with multiple `RedisConnectionFactory` beans present in the application context.
Redis configuration is simplified and no longer registers a Spring Session specific `RedisOperations<Object,Object>` bean with the application context.
Users are however able to obtain `RedisOperations<Object,Object>` instance used by Spring Session using newly introduced `@SpringSessionRedisOperations` annotation.
2017-10-25 07:36:44 -05:00
Vedran Pavic
00ede81665
Harmonize naming of reactive components
...
Closes gh-897
2017-10-24 07:36:25 +02:00
Rob Winch
6cfa975b29
Move Redis Reactive Configuration
...
Renaming the package to better align with WebSession pacakge structure
Fixes gh-901
2017-10-22 22:37:21 -05:00
Rob Winch
8b9d421ad6
Tangles in RedisOperationsSessionRepository
...
Issue: gh-900
2017-10-22 22:33:36 -05:00
Rob Winch
df7ab9d99e
Package tangles for Reactive Configuration
...
Fixes gh-900
2017-10-22 22:33:29 -05:00
Vedran Pavic
3f670050ef
Update integration tests
...
This commit updates versions of RDBMS and Redis Docker images used in
integration tests.
Closes gh-894
2017-10-09 08:09:52 +02:00
Vedran Pavic
19b8effa41
Add Redis implementation of ReactorSessionRepository
...
Closes gh-816
2017-10-06 18:45:42 +02:00
Vedran Pavic
41cf2ef152
Update documentation to reflect preference for Lettuce
...
See gh-886
2017-10-02 19:00:23 +02:00
Vedran Pavic
c51bce4777
Use Lettuce driver for integration tests
...
Closes gh-886
2017-09-28 16:17:55 +02:00