instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
spring-projects__spring-kafka__3117
spring-projects/spring-kafka
3,117
defect
4e9c0997cb5d99f596880e8323640947cc4fd39b
0cf5f8e4dcd68dc5e9093ed60781916397d5fc32
GH-3116: Upgrade kafka-client to 3.7.0
Fixes: #3116 * Upgrade kafka-client to 3.7.0 * Necessary test changes due to `KafkaConsumer` now uses a delegate based model for consumers to create legacy vs consumer-group based consumers. See the following link for more details. https://cwiki.apache.org/confluence/display/KAFKA/The+Next+Generation+of+the+Consume...
diff --git a/build.gradle b/build.gradle index 6c58ac42cb..15977502eb 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,7 @@ ext { jaywayJsonPathVersion = '2.8.0' junit4Version = '4.13.2' junitJupiterVersion = '5.10.2' - kafkaVersion = '3.6.1' + kafkaVersion = '3.7.0' kotlinCoroutinesVersion = '1.7.3' ...
1
1
0
[{"id": "G0", "claim": "The docs should mention Kafka Client compatibility somewhere else besides the new 'Kafka Client Version' section added to whats-new.adoc.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-projects__spring-kafka__3137
spring-projects/spring-kafka
3,137
defect
c68323302cdd8defd034c7a6a8b422da5972ea16
9aa2850841248aff7a581d90959aed2a9a487f0a
GH-3135 : Adding new `ListenerContainerRegistry.getListenerContainersMatchingId(Predicate)` for easier usage.
Resolves #3135
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaListenerEndpointRegistry.java b/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaListenerEndpointRegistry.java index a788583c57..29a6229236 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaListener...
8
8
0
[{"id": "G0", "claim": "The new getListenerContainersMatching implementation should use the Stream.toList() API instead of .collect(Collectors.toList()).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add @since 3.2 to the Javadoc of the new get...
null
spring-projects__spring-kafka__3167
spring-projects/spring-kafka
3,167
defect
ae775d804f82483f99d4cab2a16ef2b27649252a
85fbfaf88a5cdd4149cdf35f71b15b47c22c8b48
GH-3166: BatchInterceptor issues with retries
Fixes: #3166 * When retries are enabled, batch interceptor is not invoking the intercept methods for failures on retries and the possible eventual success method call. Addressing this issue.
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 336f13eef0..453f06815d 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
2
2
0
[{"id": "G0", "claim": "The mocked poll answer can fold the two calls into one, using a single `invocation.getAndIncrement() == 0` in the `if` instead of calling `get()` and then `getAndIncrement()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
spring-projects__spring-kafka__3169
spring-projects/spring-kafka
3,169
defect
ae775d804f82483f99d4cab2a16ef2b27649252a
1ca8ac8c9ee4d75c36165b77e5f0fe4d87d59214
GH-2609: providing more tracing tags
Fixes: #2609 detail see #2616. * fix review. * polish `ObservationTests`. * add doc in `whats-new.adoc`.
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc index 96db11cc1c..98196d8bea 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/...
6
6
4
[{"id": "G0", "claim": "Per the getConsumerId() logic the consumer id can be produced without a clientId, but that path can never be reached because the code only calls getConsumerId() inside the if(StringUtils.hasText(clientId)) block.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
spring-projects__spring-kafka__3172
spring-projects/spring-kafka
3,172
defect
c26f26e4598f40c0bf32b5294b110de438b3faf6
e65e6ff93c8494786e29535dbc20680b43531be7
GH-3020: Create topology before kafka streams start.
### Introduction Hi, Spring kafka Team. This is chickenchickenlove, huge fan of you guys. I saw this issue (https://github.com/spring-projects/spring-kafka/issues/3020). i want to resolve this problem by myself! ### Background - https://github.com/spring-projects/spring-kafka/issues/3020 - If `Topology` of `kaf...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/config/StreamsBuilderFactoryBean.java b/spring-kafka/src/main/java/org/springframework/kafka/config/StreamsBuilderFactoryBean.java index 34a22d9727..d224880b84 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/config/StreamsBuilderFactory...
3
3
2
[{"id": "G0", "claim": "There are checkstyle issues and test failures in the pull request build that need to be fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Building the topology inside isAutoStartup() overloads a method that should only re...
null
spring-projects__spring-kafka__3188
spring-projects/spring-kafka
3,188
defect
df8b7a1c144a3de93047981d72959f78dd344520
e6f5304e4004fb781967c26759ea5aeccee8e0bb
GH-3178: Align @PartitionOffset to TopicPartitionOffset
Fixes #3178 * align `@PartitionOffset` to `TopicPartitionOffset`. * add unit test for `@PartitionOffset.SeekPosition`. * add unit for SpEL partitions to Integer[] and Integer. * add adoc `whats-new.adoc` or `listener-annotation.adoc`.
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/listener-annotation.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/listener-annotation.adoc index 9503a2862a..ca6c876973 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafk...
6
6
0
[{"id": "G0", "claim": "The whats-new.adoc heading should read 'support for SeekPosition' rather than the ungrammatical 'support SeekPosition'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bullet text should read 'Adding seekPosition propert...
null
spring-projects__spring-kafka__3292
spring-projects/spring-kafka
3,292
defect
abaa465b1c777db64d2492e79bec82e314a54b8e
f74dc79812f54d09aeb741a0bb2294270ef921b1
GH-3291 - Possible inconsistency in DLT topic naming convention
**Standardize DLT Topic Naming Convention** _[Issue Reference](https://github.com/spring-projects/spring-kafka/issues/3291)_ **Description:** This pull request addresses the inconsistency in the naming convention of DLT topics when using different retry mechanisms. By standardizing the suffix to "-dlt", we aim...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handling.adoc index 5ecb73dc47..9b73dc70b2 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/annotation-error-handlin...
5
3
2
[{"id": "G0", "claim": "The docs must warn users who rely on the old '.dlt' convention (in the whats-new section) that they need to opt in to the old behavior by setting the DLT name property.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Changin...
null
spring-projects__spring-kafka__3318
spring-projects/spring-kafka
3,318
defect
4de29eec585bf9850072a8968f42909095c0726f
3b3490f61938ef544be3350d770627525e6323aa
GH-2302: Enable consumer seek only on matching group Id
<!-- Thanks for contributing to Spring for Apache Kafka. Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #) or StackOverflow questions. See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-kafka/blob/...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractConsumerSeekAware.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractConsumerSeekAware.java index 093a1c3568..4373ea5eb3 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractConsume...
5
4
1
[{"id": "G0", "claim": "The registerSeekCallback guard logic is unclear and the groupId matching the PR is meant to enable is not evident in the change.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR should be reworked so that ConsumerSeekCallback e...
null
spring-projects__spring-kafka__3377
spring-projects/spring-kafka
3,377
defect
2f2b90eda5e2ed1607bac318d137945f1ff4628b
282c27ee3d1aeb15243bc09a2ee033d7caafc8a5
Fence child containers after ConcurrentContainer stops
Containers are not restricted from starting after ConcurrentContainer stopped or restarted. These changes would fix this issue. <!-- Thanks for contributing to Spring for Apache Kafka. Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #) or Stac...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java index 8667f34c54..ecf9e08dbb 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/A...
1
1
1
[{"id": "G0", "claim": "A dedicated ContainerFencedException is unnecessary; attempting to start a child container orphaned by its stopped parent is an illegal state that should simply fail with a regular IllegalStateException.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-projects__spring-kafka__3406
spring-projects/spring-kafka
3,406
defect
20696f23900826b9c0ebe43042902659ffcb1a94
eff2239c35416f2744b7fd4344b7fd2912b80597
Fix ConcurrentContainer lifecycle issues
This commit would fix the [issue](https://github.com/spring-projects/spring-kafka/issues/3338). 1) 'isChildRunning' API would return true only after all the containers are actually stopped. 2) Add 'stopAbnormally' in a Lock. 3) Call `childStarted` in ConcurrentContainer from KafkaMessageListenerContainer right be...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java index 8ef258155b..def0bd1a7c 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/A...
7
4
2
[{"id": "G0", "claim": "The PR's new running-status semantics - the concurrent container reported as not running as soon as any child container stops - is wrong: the parent should stay running while any child is running, which makes the added canStop() hook, the extra isChildRunning() logic and the doStart() allMatch g...
null
spring-projects__spring-kafka__3421
spring-projects/spring-kafka
3,421
defect
821b3830b500d059d39d1601e24793fb2cbbe516
49d7bfecaf6e7afe1cf85e994ca76ab9f02aaf61
GH-3409: Improve exceptions during retry
Fixes: #3409 - During error handling, records in retry are throwing `KafkaException` after seeking that causes the exception to get logged which maybe misleading. It seems to indicate that the error handling process itself thew the exception, while the exception was thrown in order to prevent accidental committing o...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 7fe587fb2a..e346b469a9 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
3
2
0
[{"id": "G0", "claim": "The catch block should log directly via this.logger.info instead of calling the exception's selfLog helper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Every member of RecordInRetryException, even the last method, must be surro...
null
spring-projects__spring-kafka__3471
spring-projects/spring-kafka
3,471
defect
4dc09769e884bb074114506ea0c186c0cd36f0ad
cc99c9a9a70dead9030af7e3c49af07225ba368f
GH-3466: Optimize KafkaAdmin creation in KafkaTemplate
Fixes: #3466 https://github.com/spring-projects/spring-kafka/issues/3466 Improve bootstrap-server config comparison to avoid unnecessary KafkaAdmin recreation. This addresses inconsistencies between List<String> and String configurations for bootstrap servers. The change ensures that List versions of bootstrap...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaTemplate.java b/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaTemplate.java index c4f89d8a27..a50c9981ea 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaTemplate.java +++ b/spring-kafka/src/main/java...
1
1
0
[{"id": "G0", "claim": "The `removeLeadingAndTrailingBrackets` helper should be `static`, placed at the end of the class, and its body condensed to one line since the trailing `']'` would fit within line length.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
spring-projects__spring-kafka__3484
spring-projects/spring-kafka
3,484
defect
233f934bf4c027eafc247050b7b1acee396eb47a
4e54723c37a20053145b55714cd1d09813247ced
GH-3483: Allow @Override of KafkaAdmin createAdmin()
Fixes #3483 Changes the KafkaAdmin#createAdmin() method to be protected, returning the Admin interface instead of the AdminClient class. This change allows user of spring-kafka to supply their own Admin interface implementations by extending the KafkaAdmin class.
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java b/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java index e988eae6a0..666aa54df5 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java +++ b/spring-kafka/src/main/java/org/spri...
4
4
0
[{"id": "G0", "claim": "The newly API-exposed createAdmin method needs a @since tag in its documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Author tags should be added to the classes modified by this pull request.", "category": "docum...
null
spring-projects__spring-kafka__3516
spring-projects/spring-kafka
3,516
defect
8efc478f35c110007339e163255c2ef0cd853cd1
933303e4bfa2192463be7c7fe32b808b9092ae9b
Support custom KafkaStreams implementations
Fixes #3515. This PR introduces the ability to customize the instantiation of `KafkaStreams` using the `KafkaStreamsCustomizer` interface.
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaStreamsCustomizer.java b/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaStreamsCustomizer.java index 8155883ab3..d5bd7cbeed 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/config/KafkaStreamsCustomizer.java...
6
5
2
[{"id": "G0", "claim": "The classes changed in this PR are missing the PR author's @author tag and it should be added to all of them.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new initKafkaStreams method, being part of the public API, nee...
null
spring-projects__spring-kafka__3551
spring-projects/spring-kafka
3,551
defect
3b645362f03d7d09d3d2f37d78634e6dded29747
aea96e885ac17f043ee67e73e8f48a9717aaa93f
No Issue : Refactor test codes and Remove useless full package name.
### Description #### 1. Remove useless full package name. In the `MessagingMessageListenerAdapter` class, `org.springframework.messaging.converter.MessageConversionException` is already imported. however, the `MessageConversionException` was declared with full package names. #### 2. Refactor test codes Many t...
diff --git a/spring-kafka-test/src/main/java/org/springframework/kafka/test/utils/KafkaTestUtils.java b/spring-kafka-test/src/main/java/org/springframework/kafka/test/utils/KafkaTestUtils.java index b5b5d2c7c8..2776e8cfd8 100644 --- a/spring-kafka-test/src/main/java/org/springframework/kafka/test/utils/KafkaTestUtils.j...
2
2
1
[{"id": "G0", "claim": "The new consumerProps(String, String) overload is a new API method and needs a @since Javadoc tag.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The copy/pasted '{@code <Integer, String>}' wording in the new streamsProps J...
null
spring-projects__spring-kafka__3558
spring-projects/spring-kafka
3,558
defect
3d507c7809c2b6e91bcf9ecb18f81a07dfc7a9a3
9c5ee3e2de1a9872aefc0d8b0eee84054d90533f
GH-3528: Improving Observability in Asynchronous Processing
…bleFuture, Mono) Fixes: #3528 https://github.com/spring-projects/spring-kafka/issues/3528 - Improve spring-kafka observability for failures in async consumer tasks when listener methods return CompletableFuture<?> or Mono<?> and throw errors during async execution - Refactoring code in KafkaMessageListenerCo...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index bbc8ae8ccb..42d879039e 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
4
4
1
[{"id": "G0", "claim": "For consistency, the checks guarding observation.error and observation.stop should be against RecordMessagingMessageListenerAdapter instead of the broader MessagingMessageListenerAdapter.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
spring-projects__spring-kafka__3561
spring-projects/spring-kafka
3,561
defect
6f4adb2146a7d27416fdb7810bd0771eeb1022b1
69e68819b937e3e045e65349bcdeca45d445e6f5
Add `TaskScheduler` option for Kafka metrics components
Related to: https://github.com/micrometer-metrics/micrometer/issues/4976 * Introduce a `KafkaMetricsSupport` to have a common API for the `MeterBinder` registration * Rework `MicrometerConsumerListener`, `MicrometerProducerListener` and `KafkaStreamsMicrometerListener` to extend the `KafkaMetricsSupport` which allo...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc index 0bac8459a3..1ad2f58850 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/...
2
2
0
[{"id": "G0", "claim": "Add javadoc to the protected members (clientAdded, createClientMetrics, clientRemoved) of the new KafkaMetricsSupport class, since they are protected API that subclasses can call or override.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
spring-projects__spring-kafka__3756
spring-projects/spring-kafka
3,756
defect
59c7f97f46b5c86aa35ae842d24d2a303dc2b592
446b04078696b4559bfe805341e0b6f336f77c86
GH-3741: Fix metric tag to show underlying exception type
Fixes: #3741 Issue: https://github.com/spring-projects/spring-kafka/issues/3741 When exceptions occur in Kafka listeners, the metrics currently show `ListenerExecutionFailedException` in both the `error` tag (when using observation) and `exception` tag (when using micrometer without observation), rather than the ac...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index b655eb5b49..a859cce0bb 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
3
3
1
[{"id": "G0", "claim": "The new test's @since tag should read 3.2.7 instead of 3.3.3, as suggested in the comment.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The KafkaAdmin bean in the test configuration is not needed and should be removed.", ...
null
spring-projects__spring-kafka__3789
spring-projects/spring-kafka
3,789
defect
01fb025714eb10feccb7b6f28559b2c309f78db1
b154b89e27275304b16cecfb77635576a2ea1a7c
GH-3786: Remove ProducerRecord duplicated traceparent header
Fixes: #3786 Issue link: https://github.com/spring-projects/spring-kafka/issues/3786 When tracing is enabled, the KafkaRecordSenderContext was adding a new traceparent header without removing existing ones, resulting in multiple traceparent headers in the same record. This commit fixes the issue by Updating KafkaRe...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/support/micrometer/KafkaRecordSenderContext.java b/spring-kafka/src/main/java/org/springframework/kafka/support/micrometer/KafkaRecordSenderContext.java index 0d18699313..c7f4ab290c 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/suppor...
3
3
1
[{"id": "G0", "claim": "The setter should not hardcode the \"traceparent\" header name when deciding to replace an existing header: different vendors use different trace-context header names and anything custom can come from the context supplier, so the duplicate-entry handling must apply to whatever key the supplier a...
null
spring-projects__spring-kafka__3848
spring-projects/spring-kafka
3,848
defect
525a7569823c6d65a794da864ff2b8229893ba1f
dad5b8b42c07e0ba0a3bcf3a257c398a8d6ddc1d
GH-3847: Add support for Kafka 4.0 new consumer rebalance protocol (K…
…IP-848) Fixes: #3847 Issue link: https://github.com/spring-projects/spring-kafka/issues/3847 KIP details: https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol * Add custom assignor warning in DefaultKafkaConsumerFactory for group.protocol=consu...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/rebalance-listeners.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/receiving-messages/rebalance-listeners.adoc index d1db7d38f1..a9c45a04fd 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafk...
6
5
1
[{"id": "G0", "claim": "The docs should mention that `spring.kafka.consumer.properties.group.protocol` is Spring Boot property style (or avoid Boot-style properties in our docs to avoid implying a cyclic dependency).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
spring-projects__spring-kafka__3870
spring-projects/spring-kafka
3,870
defect
a52faccd5186451607512f08da2ba135de8ff080
696f48f33c10c04b927dd750622e376321f940cc
GH-3869: Should fail bean registration when no method …
- Fixes #3869 I created an issue and a PR regarding an improvement I thought of from a fast-fail perspective. Please feel free to let me know if you think the changes are unnecessary. Thanks for your time 🙇‍♂️
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java b/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java index 1edcc0104a..1013709f9d 100644 --- a/spring-kafka/src/main/java/org/springframew...
4
4
1
[{"id": "G0", "claim": "The pull request should supply a test covering the new fail-when-no-listener-methods behaviour before it can be merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G7", "claim": "The `throwErrorIfNoListenerMethods` helper method is unnecessa...
null
spring-projects__spring-kafka__3878
spring-projects/spring-kafka
3,878
defect
1b7d3dfb5738b6e32a8cc37afb089130463db7f5
2da4d5d3ebb6243a74d6f976dba88ecd951fad1e
GH-3873: Deprecate JUnit 4 utilities in the project
- Fixes #3873 The class that implements `MethodRule` in Junit4 is called whenever each test method is executed. Before executing the test method, it configures the log level. Then, after executing the test method, it returns the log level back. Like `MethodRule` in Junit4, the interface `InvocationIntercepto...
diff --git a/build.gradle b/build.gradle index 037066766f..f9f9765b84 100644 --- a/build.gradle +++ b/build.gradle @@ -57,7 +57,6 @@ ext { hibernateValidationVersion = '8.0.2.Final' jacksonBomVersion = '2.18.3' jaywayJsonPathVersion = '2.9.0' - junit4Version = '4.13.2' junitJupiterVersion = '5.12.2' kafkaVers...
5
5
3
[{"id": "G0", "claim": "The rewritten Log4j2LevelAdjuster extension is not used anywhere with JUnit 5, so it should not be converted.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Changing the public Log4j2LevelAdjuster class contract must be reverted a...
null
spring-projects__spring-kafka__3923
spring-projects/spring-kafka
3,923
defect
982b532d98f67ac7419f01e913a1c6471f854d82
3a2ca0fb59a12f490e26f94b72e90b77f84549c2
Introduce share consumer factories for Kafka Queues (Early Access)
- Preliminary set of changes to support Kafka queueus introduced via KIP-932 (Kafka Queue) for early access in Apache Kafka 4.0.0. See: https://cwiki.apache.org/confluence/display/KAFKA/KIP-932%3A+Queues+for+Kafka - Add ShareConsumerFactory interface and DefaultShareConsumerFactory implementation as the initial buil...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/core/DefaultShareConsumerFactory.java b/spring-kafka/src/main/java/org/springframework/kafka/core/DefaultShareConsumerFactory.java new file mode 100644 index 0000000000..1646464e45 --- /dev/null +++ b/spring-kafka/src/main/java/org/springframework/kafka/...
7
7
1
[{"id": "G0", "claim": "The JavaDocs should explain why createShareConsumer uses a client id prefix and suffix instead of just a simple clientId parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The isConfigureDeserializers getter does not...
null
spring-projects__spring-kafka__3933
spring-projects/spring-kafka
3,933
defect
17fedf64d0cf7a29ecb40e60f05d8808deae406f
ca05a71efbe6a03bd8e2f16e2faacd88eed1d320
Polish StringOrBytesSerializer
This PR includes - Use pattern matching - Reduce else-if condition
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/support/serializer/StringOrBytesSerializer.java b/spring-kafka/src/main/java/org/springframework/kafka/support/serializer/StringOrBytesSerializer.java index 8dc3f56062..9730073a33 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/support/...
1
1
0
[{"id": "G0", "claim": "The test should use the dedicated assertThatIllegalStateException() AssertJ factory method instead of assertThatExceptionOfType(IllegalStateException.class).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-projects__spring-kafka__3945
spring-projects/spring-kafka
3,945
defect
af8b7e2da14955593fb1ad23ed8c09cca85c73b2
40ab6c8ea576f0fa11477dde4bcf1fbd1a2b47a8
Add Kafka shared consumer container support
- New AbstractShareKafkaMessageListenerContainer base class with lifecycle management - ShareKafkaMessageListenerContainer implementation for share consumer protocol - Integration tests for end-to-end message delivery validation
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractShareKafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractShareKafkaMessageListenerContainer.java new file mode 100644 index 0000000000..cd39e8eaf2 --- /dev/null +++ b/spring-kafka/sr...
9
7
1
[{"id": "G0", "claim": "A package-info.java with @org.jspecify.annotations.NullMarked is missing for the listener package, which would avoid the explicit @NonNull annotations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new container clas...
null
spring-projects__spring-kafka__3988
spring-projects/spring-kafka
3,988
defect
b1d8836b7ca619c80cff1100363f5665e934758a
69f4e3b70cb2c6870d96324c6ef3263fd29c04a6
Add KafkaListener support for shared consumer containers
- Add AbstractShareKafkaListenerContainerFactory base class for share consumer factories - Add ShareKafkaListenerContainerFactory concrete implementation - Add ShareRecordMessagingMessageListenerAdapter for share consumer message handling - Modify MethodKafkaListenerEndpoint to create appropriate listener adapters b...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/config/AbstractShareKafkaListenerContainerFactory.java b/spring-kafka/src/main/java/org/springframework/kafka/config/AbstractShareKafkaListenerContainerFactory.java new file mode 100644 index 0000000000..013b704680 --- /dev/null +++ b/spring-kafka/src/ma...
16
16
3
[{"id": "G0", "claim": "The pull request should justify or drop the abstract superclass and instead combine all the logic in ShareKafkaListenerContainerFactory.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @NonNull on beanName is redundant given pa...
null
spring-projects__spring-kafka__4072
spring-projects/spring-kafka
4,072
defect
fde7d310d72e56e7fe2bf2cc1e489751e6efd09c
42de3ff938a50fc12cd878164a32f57b76771cea
Upgrade to Kafka 4.1.0 and update API usage
- Bump kafkaVersion from 4.0.0 to 4.1.0 in build.gradle - Remove broker properties no longer needed in embedded Kafka tests: * unstable.api.versions.enable=true * group.coordinator.rebalance.protocols=classic,share - Replace AcknowledgeType.ACCEPT with commitSync() in share consumer tests - Update Serializ...
diff --git a/build.gradle b/build.gradle index b4a621141f..08aa9bb992 100644 --- a/build.gradle +++ b/build.gradle @@ -60,7 +60,7 @@ ext { jaywayJsonPathVersion = '2.9.0' junit4Version = '4.13.2' junitJupiterVersion = '5.13.4' - kafkaVersion = '4.0.0' + kafkaVersion = '4.1.0' kotlinCoroutinesVersion = '1.10.2' ...
1
1
0
[{"id": "G0", "claim": "The pull request's changes - replacing acknowledge with commitSync in the share-consumer test and switching the serializer test to the deserializer plugin - are unexplained, and the reviewer asks for the reasons to be elaborated and placed into the final commit message.", "category": "documentat...
null
spring-projects__spring-kafka__4096
spring-projects/spring-kafka
4,096
defect
17fe0ff84d445c3b7e10a1959ae7fc46aa4bfded
6fa0e01fe8ee16b7c5581dad5635ff7d5a11fe36
GH-4088 : Bug Fix (send offset to tx, when no active tx)
<!-- Thanks for contributing to Spring for Apache Kafka. Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #) or StackOverflow questions. See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-kafka/blob/...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 6364135b12..7bd7c00824 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
2
2
2
[{"id": "G0", "claim": "sendOffsetsToTransaction should also handle a null kafkaTxManager by returning early, since there is no point in sending offsets to a transaction when no transaction manager is set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
spring-projects__spring-kafka__4102
spring-projects/spring-kafka
4,102
defect
197276919320b1234481bcd453d200bed2c2b8d8
83aaa6a331b516d527b431cfcf39c51fd6c14949
Add concurrency support to `ShareKafkaMessageListenerContainer`
Share consumers (KIP-932) enable record-level load balancing where multiple consumers can cooperatively process from the same partitions. Unlike traditional consumer groups with exclusive partition ownership, share groups distribute work at the broker level via the share group coordinator. This commi...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc index 7f59a727fb..2aeceefd50 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc +++ b/spring-kafka-docs/src/main...
10
10
0
[{"id": "G0", "claim": "The docs should mention that concurrency on a single container is exactly the same as, and additive with, concurrency declared by several application instances.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added docum...
null
spring-projects__spring-kafka__4235
spring-projects/spring-kafka
4,235
defect
841e069a962a4d44f3f40618ea6a49eece072627
97ad2f2e224c11d1f6ff8870e68eb3f74876d09d
GH-3706: Align RetryTopicConfigurationBuilder default with @RetryableTopic
Fixes #3706 ## Summary Align the default `sameIntervalTopicReuseStrategy` in `RetryTopicConfigurationBuilder` with `@RetryableTopic` annotation (both now default to `SINGLE_TOPIC`). ## Changes - Change default from `MULTIPLE_TOPICS` to `SINGLE_TOPIC` in `RetryTopicConfigurationBuilder` - Update `topic-nami...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/retrytopic/topic-naming.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/retrytopic/topic-naming.adoc index 679dd7e55b..f24fbafb5d 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/retrytopic/topic-naming.adoc +++ b/spring-kafk...
6
6
2
[{"id": "G0", "claim": "The whats-new entry for this change is placed in the 4.0 section and anchored x40, so the respective whats-new section must be fixed for the change to 4.1.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR author's name...
null
spring-projects__spring-kafka__4238
spring-projects/spring-kafka
4,238
defect
841e069a962a4d44f3f40618ea6a49eece072627
211c6313eee43311ec5cf21e3f1287b915f1fc48
GH-4230: Enhance listener observation handling with additional adapter support
I'm submitting a PR for issue #4230. Although the KafkaBackoffAwareMessageListenerAdapter class delegates to RecordMessagingMessageListenerAdapter, it was observed that metrics were being recorded incorrectly because it wasn't adding metrics despite RecordMessagingMessageListenerAdapter. To resolve this, I modified...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 213f2a76c2..94a3038f51 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
8
7
3
[{"id": "G0", "claim": "The @since tag on MicrometerMetricsTests must not be changed because the class was created in 3.2.7, and since the fix is to be back-ported to 3.3.x any @since should target the lowest version - so better to drop @since from the change entirely.", "category": "documentation", "verdict": "support...
null
spring-projects__spring-kafka__4254
spring-projects/spring-kafka
4,254
defect
6a7caee679cc4f7b20032dbfef4a84f35196af93
ad7cce75549ee05dd7c066fb4b627d9d787b40df
GH-3618: Support CommonErrorHandler for suspend functions
Fixes GH-3618(https://github.com/spring-projects/spring-kafka/issues/3618) ## Summary Support `CommonErrorHandler` (e.g., `DefaultErrorHandler`) for Kotlin suspend functions. Previously, exceptions from suspend functions were only logged and not propagated to `CommonErrorHandler`. This change sets up the async f...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 468aecec15..b7f45fd5af 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
6
6
2
[{"id": "G0", "claim": "The test's commonHandlerInvoked boolean is redundant because awaiting commonHandlerLatch is enough to verify the handler was called, so remove it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added comment describes...
null
spring-projects__spring-kafka__4304
spring-projects/spring-kafka
4,304
defect
2efedd4f4b40efc23f13bda8458b7b27e74be36c
f15b325437290151eae629e28233cf225916f46b
GH-4303: Allow @KafkaListener with no topic specification for programmatic resolution
## Summary The `assertTopic` validation introduced in GH-4170 / PR #4172 requires exactly one of `topics`/`topicPartitions`/`topicPattern` to be set (`count == 1`). This breaks a valid use case where a meta-annotated `@KafkaListener` intentionally omits all topic specifications because the custom `KafkaListenerContain...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java b/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java index ba82de6bbb..d272d766de 100644 --- a/spring-kafka/src/main/java/org/springframew...
2
2
1
[{"id": "G0", "claim": "Add the PR author's name as @author to the classes changed by this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shouldAllowNoTopicSpecificationForProgrammaticResolution test only asserts no exception is ...
null
spring-projects__spring-kafka__4320
spring-projects/spring-kafka
4,320
defect
b5243f7719a78e9ea76330fb06b901a9c4fbbcdb
3e65a8eed63f1436ad431471e829676cc7f03c92
GH-4198: Fix async retry bookkeeping for Mono listener failures
Fixes https://github.com/spring-projects/spring-kafka/issues/4198 ## Summary This PR fixes retry behavior when a @KafkaListener method has a Mono return type and throws an exception directly (before creating the async result). Previously, with async acks enabled (default behavior for async return types), r...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 468aecec15..c90e72e4d3 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
16
15
2
[{"id": "G0", "claim": "The `synchronized` modifier on the new `removeOffsetsInBatch` helper is unnecessary because the method is only invoked from the single consumer thread.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `List.of(cRecord)`...
null
spring-projects__spring-kafka__4330
spring-projects/spring-kafka
4,330
defect
b5243f7719a78e9ea76330fb06b901a9c4fbbcdb
74bc1cbbe81b930e5f7f2bc598806a293cb60dfe
GH-4306: Stop listener observations for filtered records
Fixes #4306 ## Problem When observation is enabled for record listeners, the container starts an observation per record. For adapter-aware listeners, the container expects the delegate adapter to stop it. With `FilteringMessageListenerAdapter`, filtered records do not call delegate `onMessage()`. In that pat...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java index 468aecec15..78708f4cdc 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMe...
2
2
1
[{"id": "G0", "claim": "The @since tag on the new setObservationRegistry Javadoc should say 4.0.4, the real upcoming release, instead of 4.0.3.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR author's name should be added to the @author list...
null
spring-projects__spring-kafka__4338
spring-projects/spring-kafka
4,338
defect
19070c38518f976055caae93d3f2d2a8fe4d0c0e
1205a105617725e47325113495958e28e1965633
GH-4321: Add error handling to share consumer container
Fixes: https://github.com/spring-projects/spring-kafka/issues/4321 - A single record that failed deserialization or had a corrupt batch was stopping the whole consumer thread. Catch `RecordDeserializationException` and `CorruptRecordException` from `poll()`, `REJECT` or log and continue, so the thread keeps running ...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc index 68a4d1caf1..6a57a50923 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc +++ b/spring-kafka-docs/src/main...
10
10
0
[{"id": "G0", "claim": "The new Share Consumer Error Handling entries in whats-new.adoc should be wrapped one sentence per line instead of several sentences on one line.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The header block of ShareConsu...
null
spring-projects__spring-kafka__4340
spring-projects/spring-kafka
4,340
defect
8ee8d0f70054119b5214c27588c67011b1f2d663
9408c3fd4e38656ed3f7803c19f1962898691c48
GH-4322: Add `RENEW` acknowledgment type to `ShareAcknowledgment`
Fixes: https://github.com/spring-projects/spring-kafka/issues/4322 - Add `renew()` to `ShareAcknowledgment` and document RENEW (KIP-1222) in Javadoc; implement in `ShareConsumerAcknowledgment` with `AcknowledgeType.RENEW`. - Allow RENEW then terminal ack: change `acknowledgeInternal` so RENEW is allowed when stat...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc index 815de01830..43c1c4d14d 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc +++ b/spring-kafka-docs/src/main...
5
5
2
[{"id": "G0", "claim": "The detailed RENEW explanation should live in the target chapter (Kafka Queues) rather than in whats-new.adoc, where it is easy to lose across versions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The renew() Javadoc's @...
null
spring-projects__spring-kafka__4373
spring-projects/spring-kafka
4,373
defect
30d242b8ed333daf6cbe4631c73820f46b8e3639
8d930be334bf107f2b476cd281105eedaf1e95e8
GH-4329 Added new property group protocol in StreamsBuilderFactoryBean
This PR addresses the issue https://github.com/spring-projects/spring-kafka/issues/4329. It exposes group protocol configuration for streams directly through `StreamsBuilderFactoryBean` **This PR does the following** - Expose configuration for Group Protocols in `StreamsBuilderFactoryBean`. - Adds test for `St...
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/streams.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/streams.adoc index e5c4895d0d..0bf59cd6e6 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/streams.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/stream...
15
14
5
[{"id": "G0", "claim": "The call to applyGroupProtocol() in the constructor is always a no-op (this.groupProtocol is always null at construction time) and there is no path from the setter back to this.properties, so the group protocol feature silently has no effect; applyGroupProtocol() should be removed entirely and t...
null
spring-projects__spring-kafka__4376
spring-projects/spring-kafka
4,376
defect
30d242b8ed333daf6cbe4631c73820f46b8e3639
aae9b8f40d7f11faf0d96f0f99a23545181a9f08
Introduce `ShareAckMode` enum for share consumers
The 4.0 boolean `explicitShareAcknowledgment` only controlled whether the listener received a non-null acknowledgment object. It had no effect on Kafka's `share.acknowledgement.mode`, so `acknowledge()` would throw `IllegalStateException` when the factory used the Kafka default (implicit mode). `ContainerProperties....
diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc index 43c1c4d14d..d4d0fd720b 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/kafka-queues.adoc +++ b/spring-kafka-docs/src/main...
9
8
1
[{"id": "G0", "claim": "The Share Consumer Acknowledgment Modes section is too much information for whats-new.adoc and the content should be provided in the target chapter instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reusing ContainerPr...
null
spring-projects__spring-kafka__4390
spring-projects/spring-kafka
4,390
defect
71a102934f78782a52506573c2f09cc196791c00
6b48049717e3d3be568eb8827c952cb2cef7e14c
GH-4380: Add AcknowledgementCommitCallback support for async share co…
Fixes #4380 Following up on #4379 (async commit option), this PR adds AcknowledgementCommitCallback support to the share consumer container. When `syncShareCommits=false`, a default callback is registered that logs commit failures. Users can provide a custom callback via `ContainerProperties.setAcknowledgement...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java b/spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java index 72ee0e00c9..f0cb897d9f 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java ++...
5
5
1
[{"id": "G0", "claim": "The pull request fails ./gradlew check with Checkstyle violations; the author should run the checks locally and fix all of the failures before pushing to the remote branch.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The @Nullab...
null
spring-projects__spring-kafka__4391
spring-projects/spring-kafka
4,391
defect
71a102934f78782a52506573c2f09cc196791c00
e8796cd3005eef13044d2f2b4db37602e6cb158e
Fixes gh-4384: Ensure non-string override properties are consistent
Problem DefaultKafkaConsumerFactory uses Properties#stringPropertyNames() when merging override properties, which ignores non-string values. This leads to inconsistent behavior when override properties contain non-string values (e.g. integers). Solution Updated the merge logic in createConsumerWithAdjustedProp...
diff --git a/spring-kafka/src/main/java/org/springframework/kafka/core/DefaultKafkaConsumerFactory.java b/spring-kafka/src/main/java/org/springframework/kafka/core/DefaultKafkaConsumerFactory.java index 3310500876..8a42a3c543 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/core/DefaultKafkaConsumerFac...
2
2
2
[{"id": "G0", "claim": "The tests only verify what Spring's own code passes along (captured intermediate maps, then originals()) instead of ensuring the merged overrides actually land in the final ConsumerConfig the way KafkaConsumer's constructors process them, which is what the reviewer asked for.", "category": "test...
null
spring-projects__spring-pulsar__100
spring-projects/spring-pulsar
100
defect
a57c823a2ad69ff9f80c8c14d2a422f83d3b1b5f
74dd6a8f708c50981f54095bc3137509bcf70f26
Introducing experimental consumer error handling
Provide a Spring specific general mechanism to handle consumer errors regardless of the subscription type. Currently for exclusive and failover subscriptions, Pulsar Java client does not allow the applicaitons to use a DLQ. This feature allows the applications to set a PulsarConsumerErrorHandler that takes a Backoff an...
diff --git a/spring-pulsar/src/main/java/org/springframework/pulsar/listener/AbstractPulsarMessageListenerContainer.java b/spring-pulsar/src/main/java/org/springframework/pulsar/listener/AbstractPulsarMessageListenerContainer.java index 43388427f..7fec53750 100644 --- a/spring-pulsar/src/main/java/org/springframework/p...
23
16
1
[{"id": "G0", "claim": "The ominous ackTimeoutMillis warning at the top of the PulsarConsumerErrorHandler javadoc distracts and raises unexplained questions, so it should be moved down and briefly explained.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
spring-projects__spring-pulsar__107
spring-projects/spring-pulsar
107
defect
df00e9b67a3c15ce1636531c54ea20d9b0de85e3
10a91d26187f594bf9a870f247248198ae8a6b47
More Pulsar Consumer Error handling Changes
This PR introduces the ability for PulsarListener annotation to provide the name of the PulsarConsumerErrorHandler bean. When such a bean name is provided, the framework properly scans for the bean and delegates it to downstream message listener container.
diff --git a/spring-pulsar-spring-boot-autoconfigure/src/test/java/org/springframework/pulsar/autoconfigure/PulsarAutoConfigurationTests.java b/spring-pulsar-spring-boot-autoconfigure/src/test/java/org/springframework/pulsar/autoconfigure/PulsarAutoConfigurationTests.java index c9500a95b..eb761d374 100644 --- a/spring-...
4
2
0
[{"id": "G0", "claim": "Use the type parameter (V or T) for the PulsarConsumerErrorHandler field and setter instead of a raw type with @SuppressWarnings.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the nested PulsarConsumerErrorHandlerTe...
null
spring-projects__spring-pulsar__113
spring-projects/spring-pulsar
113
defect
c59db859907aa5a0f494d4c800737a6432c86c65
80bc91bce0a14101f7ab61b211a0e60a1b45b091
AckTimeout Redlivery Backoff Changes
Provide a way to specify ackTimeoutRedeliveryBackoff through PulsarListener annotation. These changes are similar to the one in which we introduced negativeAckRedeliveryBackoff: https://github.com/spring-projects-experimental/spring-pulsar/commit/cc3842062e970ae4b64ade537d085bd0ec309ac9
diff --git a/spring-pulsar/src/main/java/org/springframework/pulsar/annotation/PulsarListener.java b/spring-pulsar/src/main/java/org/springframework/pulsar/annotation/PulsarListener.java index 2647326ba..ca9b5101e 100644 --- a/spring-pulsar/src/main/java/org/springframework/pulsar/annotation/PulsarListener.java +++ b/s...
1
1
1
[{"id": "G0", "claim": "The newly added block that reads the \"ackTimeoutRedeliveryBackoff\" property should call consumerBuilder.ackTimeoutRedeliveryBackoff instead of consumerBuilder.negativeAckRedeliveryBackoff.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-projects__spring-pulsar__1209
spring-projects/spring-pulsar
1,209
defect
861835b0fa12d15e06afabbc83b80b8554d0e6f5
a40d50872a7e4954a4fa6219caf960824a1ebf2f
Remove and replace deprecated APIs marked for removal in 2.0.x
Due to gh-1187, we should remove deprecates that are marked for removal from version 1.2.0. Closes: gh-1187
diff --git a/spring-pulsar-reactive/src/test/java/org/springframework/pulsar/reactive/config/DefaultReactivePulsarListenerContainerFactoryTests.java b/spring-pulsar-reactive/src/test/java/org/springframework/pulsar/reactive/config/DefaultReactivePulsarListenerContainerFactoryTests.java index e91f982be..a1c4214d5 100644...
3
1
1
[{"id": "G0", "claim": "Adding the spring-boot-starter-pulsar test dependency just to get PulsarContainerFactoryCustomizer is not a good solution; instead introduce an optional test PulsarContainerProperties customizer in PulsarTxnTestsBase and register it in the tests where needed.", "category": "design", "verdict": "...
null
spring-projects__spring-pulsar__226
spring-projects/spring-pulsar
226
defect
9baa08083e2859b4b6d027a85419d1b41460479a
6c20b4d0ccfa9ec4994367accf8d97b537b45e49
Add more settings to Consumer in PulsarReactiveProperties
Also removing `KeySharedMode` for now as `KeySharedPolicySticky` needs a param to configure `Ranges` otherwise it fails. This can be added again later by adding support for ranges.
diff --git a/spring-pulsar-spring-boot-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarReactiveProperties.java b/spring-pulsar-spring-boot-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarReactiveProperties.java index 549c78255..17490724f 100644 --- a/spring-pulsar-s...
1
1
0
[{"id": "G0", "claim": "The key-shared consumer settings could be redesigned as spring.pulsar.reactive.consumer.key-shared.mode plus a ranges list (e.g. 1,100), which would require a custom Range converter to turn \"1,100\" into Range(1, 100).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "...
null
spring-projects__spring-pulsar__279
spring-projects/spring-pulsar
279
defect
31dd9ed0d49f25a18f6732afd4027f409094f0a8
0ac9b25297eedd9776af1253bac7942116598786
Pulsar binder basic integ test
<!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests. Do not use this repository as a GitHub playground. Security Vulnerabilities STOP! If your contribution fixes a security vulnerability, pleas...
diff --git a/spring-pulsar-spring-cloud-stream-binder/build.gradle b/spring-pulsar-spring-cloud-stream-binder/build.gradle index 9891c643c..171ebf1a6 100644 --- a/spring-pulsar-spring-cloud-stream-binder/build.gradle +++ b/spring-pulsar-spring-cloud-stream-binder/build.gradle @@ -11,5 +11,9 @@ dependencies { e...
4
3
0
[{"id": "G0", "claim": "The last 3 newly added dependencies in build.gradle should be alpha-ordered.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test class should carry an @author Javadoc tag.", "category": "documentation", "verdict":...
null
spring-projects__spring-pulsar__282
spring-projects/spring-pulsar
282
defect
e36ef5f19ce79b392e5fe4297ea10852e0ecc681
9c86b6a726bd3dd0974c3f691b64b00964f3d248
Pulsar binder schema related changes
<!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests. Do not use this repository as a GitHub playground. Security Vulnerabilities STOP! If your contribution fixes a security vulnerability, pleas...
diff --git a/spring-pulsar-sample-apps/sample-pulsar-binder/src/main/resources/application.yml b/spring-pulsar-sample-apps/sample-pulsar-binder/src/main/resources/application.yml index 65b1e4bab..106ff7cdf 100644 --- a/spring-pulsar-sample-apps/sample-pulsar-binder/src/main/resources/application.yml +++ b/spring-pulsar...
1
1
0
[{"id": "G0", "claim": "The new test's name is not descriptive — it is the same scenario as basicProducerConsumerBindingEndToEnd but with Float instead of String payloads, so it should be named similarly to that test to make the difference between the tests easier to figure out.", "category": "maintainability", "verdic...
null
spring-projects__spring-pulsar__284
spring-projects/spring-pulsar
284
defect
ea1597a0a1e810f5e9a924f34b5dc3303f9d2243
be695a28b9d4ff83af335ca91031b67c81031b69
Pulsar binder provisioner refactoring
<!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests. Do not use this repository as a GitHub playground. Security Vulnerabilities STOP! If your contribution fixes a security vulnerability, pleas...
diff --git a/spring-pulsar-spring-cloud-stream-binder/src/main/java/org/springframework/pulsar/spring/cloud/stream/binder/config/PulsarBinderConfiguration.java b/spring-pulsar-spring-cloud-stream-binder/src/main/java/org/springframework/pulsar/spring/cloud/stream/binder/config/PulsarBinderConfiguration.java index 508d8...
10
8
1
[{"id": "G0", "claim": "PulsarBinderConfigurationProperties should be registered via @EnableConfigurationProperties above the class rather than exposed as a @Bean.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment/javadoc should be added documenti...
null
spring-projects__spring-pulsar__287
spring-projects/spring-pulsar
287
defect
9478c491fd8e2eb066a291a884f8b73446443768
4de32db378d69d23628d502bb857a5e726bfe82c
Remove setSchema API from templates
For both PulsarTemplate and ReactivePulsarTemplate: * remove setSchema() * add schema param in simple API * add schema param in fluent API Update all tests and samples accordingly See #268
diff --git a/spring-pulsar-docs/src/main/asciidoc/schema-info/schema-info-template.adoc b/spring-pulsar-docs/src/main/asciidoc/schema-info/schema-info-template.adoc index 736c4abe1..fbe13be82 100644 --- a/spring-pulsar-docs/src/main/asciidoc/schema-info/schema-info-template.adoc +++ b/spring-pulsar-docs/src/main/asciid...
2
1
0
[{"id": "G0", "claim": "The reworded Custom Schema Mapping sentence in schema-info-template.adoc is garbled ('need to set the specify the schema') and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions why t...
null
spring-projects__spring-pulsar__299
spring-projects/spring-pulsar
299
defect
224eb0b3e2d9c2e1cb9466c2efda8f9dea851e24
459c34f9a1baa8e20bf97f6b8cce3aeba93885de
Container pause/resume improvements
* When container is paused, ensure that we are not spinning CPU cycles by constantly trying to poll in a loop. When pausing the container, the polling waits until a condition is signaled by resuming. Resolves https://github.com/spring-projects-experimental/spring-pulsar/issues/297 <!-- Thanks for contributing to...
diff --git a/spring-pulsar/src/main/java/org/springframework/pulsar/listener/DefaultPulsarMessageListenerContainer.java b/spring-pulsar/src/main/java/org/springframework/pulsar/listener/DefaultPulsarMessageListenerContainer.java index 2b5a25f7f..201ea40c7 100644 --- a/spring-pulsar/src/main/java/org/springframework/pul...
5
4
2
[{"id": "G0", "claim": "The single-topic HashSet construction in containerPauseAndResumeFeatureUsingWaitAndNotify could be simplified with Collections.singleton.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An integration test that sends and r...
null
spring-projects__spring-pulsar__301
spring-projects/spring-pulsar
301
defect
051aa435210558ea53d2bf6048824d40d879fcae
c0c3bd47d3518949750dee320c08ab40d94ad03f
Basic Pulsar Reader API support in Spring Pulsar
<!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests. Do not use this repository as a GitHub playground. Security Vulnerabilities STOP! If your contribution fixes a security vulnerability, pleas...
diff --git a/spring-pulsar/src/main/java/org/springframework/pulsar/core/DefaultPulsarReaderFactory.java b/spring-pulsar/src/main/java/org/springframework/pulsar/core/DefaultPulsarReaderFactory.java new file mode 100644 index 000000000..9ca4fa83f --- /dev/null +++ b/spring-pulsar/src/main/java/org/springframework/pulsa...
3
1
1
[{"id": "G0", "claim": "The reader factory API should be slimmed down to a constructor taking client plus default readerConfig and a single createReader(Schema<T>, @Nullable ReaderBuilderCustomizer<T>... customizers) method, dropping the per-call topics/messageId/properties parameters.", "category": "design", "verdict"...
null
spring-projects__spring-pulsar__327
spring-projects/spring-pulsar
327
defect
e67f22b79ca5053daebdd9ccddc6f6b3aded1432
645977ca31e81b245f25776d8797beabde4b9bfa
Pulsar Reader (imperative) Boot properties support
<!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests. Do not use this repository as a GitHub playground. Security Vulnerabilities STOP! If your contribution fixes a security vulnerability, pleas...
diff --git a/spring-pulsar-spring-boot-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarProperties.java b/spring-pulsar-spring-boot-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarProperties.java index efeb6da5d..69d1df1da 100644 --- a/spring-pulsar-spring-boot-autoc...
3
3
0
[{"id": "G0", "claim": "The boolean reader config props should follow the existing javadoc convention and be documented in the form \"Whether to ...\" instead of \"If enabled, ...\" / \"If set to true, ...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
spring-projects__spring-pulsar__339
spring-projects/spring-pulsar
339
defect
284b4b0c1e6d632a915337df323ccd7121135f66
fafb8161f3bc98bb711f5dd70a3bb1d3a1d976f6
Pulsar binder partition count defaults
In Pulsar, partitioned topics are optional. If we set the default partition count to be 1, then it unnecessarily creates a partitoned topic. Therefore, we need to set the default partition count as 0 in the binder and extended binding properties. <!-- Thanks for contributing to Spring for Apache Pulsar. Please revi...
diff --git a/spring-pulsar-spring-cloud-stream-binder/src/main/java/org/springframework/pulsar/spring/cloud/stream/binder/properties/PulsarBinderConfigurationProperties.java b/spring-pulsar-spring-cloud-stream-binder/src/main/java/org/springframework/pulsar/spring/cloud/stream/binder/properties/PulsarBinderConfiguratio...
3
3
1
[{"id": "G0", "claim": "The partitionCount fields should be moved back to nullable Integer (and the binder property too) instead of the primitive int, so that 'user has not set anything' can be distinguished from the default, consistent with the other fields that moved to wrapper types.", "category": "design", "verdict...
null
spring-projects__spring-pulsar__342
spring-projects/spring-pulsar
342
defect
64159ff350de734f3bccea48903557a0266685aa
ec4c42b76296ab4bb8ce6fb1fa65425e0d279b09
Container infrastructure for Pulsar Reader
Adding the basic foundations for the Pulsar Reader container. This is similar to the message listener container mechanism used in the regular consumer for managing the various lifecycles. Resovles https://github.com/spring-projects-experimental/spring-pulsar/issues/341 <!-- Thanks for contributing to Spring for ...
diff --git a/spring-pulsar/src/main/java/org/springframework/pulsar/core/DefaultPulsarReaderFactory.java b/spring-pulsar/src/main/java/org/springframework/pulsar/core/DefaultPulsarReaderFactory.java index 248150ec7..394c6f51c 100644 --- a/spring-pulsar/src/main/java/org/springframework/pulsar/core/DefaultPulsarReaderFa...
12
12
1
[{"id": "G0", "claim": "Add a null check on the schema parameter in DefaultPulsarReaderFactory.createReader, as was done for the other consumer/producer factories (Objects.requireNonNull(schema, \"Schema must be specified\")).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing...
null
spring-projects__spring-pulsar__378
spring-projects/spring-pulsar
378
defect
8300f1a4beb4362f530b680efcc19562dfa99724
f3a4c42b33804c516ab79e6bd3e30127783f2db7
Better container properties sync
* If consumer properties are directly overridden, we need to sync that with container properties. This commit tries to centralize this synching. <!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests...
diff --git a/spring-pulsar-spring-cloud-stream-binder/src/main/java/org/springframework/pulsar/spring/cloud/stream/binder/PulsarMessageChannelBinder.java b/spring-pulsar-spring-cloud-stream-binder/src/main/java/org/springframework/pulsar/spring/cloud/stream/binder/PulsarMessageChannelBinder.java index 47cd8f44a..2a353f...
4
4
0
[{"id": "G0", "claim": "The chained isNotEmpty/hasSize/contains assertions on the topics in the test can be replaced by a single containsExactly(\"my-topic\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The updateContainerProperties method s...
null
spring-projects__spring-pulsar__487
spring-projects/spring-pulsar
487
defect
015346d095dadbba937f961c6eb75bd2cbbd1446
50dc352e87ab610af05103538c7afb0c9378c27e
Add specialized builder customizers for listener annotations
Introduces a specialization of the consumer builders that can be used by the annotation listeners. This differentiates between the existing consumer builders that are picked up by Spring Boot autoconfiguration and used to customizer the consumer factories globally. Resolves #486 <!-- Thanks for contributing...
diff --git a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar.adoc b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar.adoc index aa060a93d..2d294c059 100644 --- a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar.adoc +++ b/spring-pulsar-docs/src/main/ant...
1
1
0
[{"id": "G0", "claim": "In resolveConsumerCustomizer, a consumerCustomizer that is an instance of the old ConsumerBuilderCustomizer should fail hard (e.g. via Assert.isInstance) rather than log a warning and bail.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-projects__spring-pulsar__559
spring-projects/spring-pulsar
559
defect
07fce0481aa4bc919d144f9fd0605342804c4965
9de1d2da8c888f0ced18df54ee878255251bc3cb
Add AUTO_CONSUME schema support
This PR adds support for AUTO_CONSUME schema type to: - @PulsarListener - @PulsarReader - @ReactivePulsarListener > [!NOTE] > - [x] update docs Resolves #380
diff --git a/spring-pulsar-reactive/src/main/java/org/springframework/pulsar/reactive/config/MethodReactivePulsarListenerEndpoint.java b/spring-pulsar-reactive/src/main/java/org/springframework/pulsar/reactive/config/MethodReactivePulsarListenerEndpoint.java index d39386ff5..792a23814 100644 --- a/spring-pulsar-reactiv...
3
1
0
[{"id": "G0", "claim": "Setting the SchemaType again explicitly in createMessageListener appears unnecessary, since it is derived from the PulsarListener annotation and should always be AUTO_CONSUME in this case.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
spring-projects__spring-pulsar__565
spring-projects/spring-pulsar
565
defect
0da4142b48d99c91913a4ad988aa6848be7daaba
1c31e6c0333ec9f118008542289cc7280b7c3d83
Add `@PulsarMessage` for default topic/schema
This PR adds `@PulsarMessage` annotation to allow specifying default topic and/or schema info for a message class. cc: @jonasgeiregat do you mind giving this a review as well?
diff --git a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/schema-info/custom-schema-mapping.adoc b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/schema-info/custom-schema-mapping.adoc index c37557078..563b3df2e 100644 --- a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/refer...
5
3
1
[{"id": "G0", "claim": "Support resolving property placeholder strings (e.g. @PulsarMessage(topic = \"${my-app.topics.topic-alias}\")) in the annotation's topic attribute, e.g. by running the value through Environment.getProperty in getAnnotatedTopicInfo, so the same property can be reused in @PulsarListener.", "catego...
null
spring-projects__spring-pulsar__597
spring-projects/spring-pulsar
597
defect
3a837de5a04a254460ec735091b67e1ce5daa6f5
794a9bd273c3bef7945123a320008d9641b667e7
Add temporary info logs to analyse flaky test issue #561
<!-- Thanks for contributing to Spring for Apache Pulsar. Please review the following notes before submitting a pull request. Please submit only genuine pull-requests. Do not use this repository as a GitHub playground. Security Vulnerabilities STOP! If your contribution fixes a security vulnerability, pleas...
diff --git a/spring-pulsar-reactive/src/test/java/org/springframework/pulsar/reactive/listener/ReactivePulsarListenerTombstoneTests.java b/spring-pulsar-reactive/src/test/java/org/springframework/pulsar/reactive/listener/ReactivePulsarListenerTombstoneTests.java index 780f40f90..d06472acd 100644 --- a/spring-pulsar-rea...
2
1
0
[{"id": "G0", "claim": "Adjust the temporary-log comment to add a TODO for removal and remove the CI-failure link from it (the link belongs in the issue).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefix the temporary log message with a wel...
null
spring-projects__spring-pulsar__72
spring-projects/spring-pulsar
72
defect
206cc1599e14da1836dc3578da54ad08e60b880a
d0ff99e19ff4cd3362e8130e45cfb6ae4293504f
Followup "GH-41 Add auto-created topics"
This PR adds auto-configuration and documentation for #64.
diff --git a/spring-pulsar-docs/src/main/asciidoc/application-properties.adoc b/spring-pulsar-docs/src/main/asciidoc/application-properties.adoc index 0f94d9d9b..25dea9f57 100644 --- a/spring-pulsar-docs/src/main/asciidoc/application-properties.adoc +++ b/spring-pulsar-docs/src/main/asciidoc/application-properties.adoc...
6
6
2
[{"id": "G0", "claim": "The configuration namespace should be `spring.pulsar.admin` instead of `spring.pulsar.administration`, so the backing property/var should be named accordingly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getters in PulsarPr...
null
spring-projects__spring-pulsar__87
spring-projects/spring-pulsar
87
defect
6e9cc3f8fad463c19b34e6f58dae902226747f7d
45ac57a22f63e816c256a2f4eef32c3dce5cf644
Followup complex schemas
This is the followup PR for #82, adding tests for containing parameters and updating the docs with the supported schema types.
diff --git a/spring-pulsar-docs/src/main/asciidoc/pulsar.adoc b/spring-pulsar-docs/src/main/asciidoc/pulsar.adoc index 5d7541ffd..5dbfb5293 100644 --- a/spring-pulsar-docs/src/main/asciidoc/pulsar.adoc +++ b/spring-pulsar-docs/src/main/asciidoc/pulsar.adoc @@ -639,8 +639,16 @@ public void listen(Foo foo) { ---- ==== ...
1
1
0
[{"id": "G0", "claim": "Remove the hardcoded version number from `api 'com.google.protobuf:protobuf-java:3.21.5'` in spring-pulsar/build.gradle and manage the protobuf version through a constraint in the spring-pulsar-dependencies platform, like caffeine.", "category": "design", "verdict": "supported", "priority": "P2"...
null
spring-projects__spring-retry__175
spring-projects/spring-retry
175
defect
e2b0555f96594c2321990d0deeac45fc44d4f123
d75a0cb576d23ed2521df3b778b882282f1d033f
Fix recovering with inheritance on argument types
Fix bug when there are multiple recover methods and a potential inheritance with argument types like List. Issue https://github.com/spring-projects/spring-retry/issues/174#issue-441125555
diff --git a/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java b/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java index afab81d4..f99653d0 100644 --- a/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java ...
1
1
0
[{"id": "G0", "claim": "The classes touched by the change should credit Nathanaël Roberts in the `@author` list and have their Copyright year updated to the current year.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-projects__spring-retry__187
spring-projects/spring-retry
187
defect
ff4535fecf799b523db638a26a0cbb3ce5881d35
f419d26224bd6f69cf0e50b0019dc68ba829422a
Allow recover by name in `Retryable` annotation.
> Why not introduce a recoveryName attribute in the `@Retry(recoverName="recover1")` annotation that can then be matched in the `@Recover(name="recover1"...)` annotation? Using parameter names gets super confusing and isn't clear, which forces developers to have to do more testing of the framework just to ensure they h...
diff --git a/src/main/java/org/springframework/retry/annotation/Recover.java b/src/main/java/org/springframework/retry/annotation/Recover.java index 2aa47c77..62d1602c 100644 --- a/src/main/java/org/springframework/retry/annotation/Recover.java +++ b/src/main/java/org/springframework/retry/annotation/Recover.java @@ -4...
8
8
2
[{"id": "G0", "claim": "The new name() attribute on @Recover is unnecessary because the method name given in @Retryable alone is enough, and a second name confuses clients.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The @Retryable attribute recoverNa...
null
spring-projects__spring-retry__245
spring-projects/spring-retry
245
defect
e637911a8af4bbef372824cb9e13e3b8fa67426b
bd35012fe9ec2a8e9838b072fa3df8a6e10b16c8
GH-244: Invoke Proxy for @Recover Method
Resolves https://github.com/spring-projects/spring-retry/issues/244 The `RecoverAnnotationRecoveryHandler` only has access to the undecorated raw bean. Use the `RetryContext` to make the proxy (if CGLIB) available to the recoverer.
diff --git a/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java b/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java index f0752019..6b46db28 100644 --- a/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java ...
4
4
3
[{"id": "G0", "claim": "The recovery handler should invoke the recover method through the proxy whenever possible, including JDK dynamic proxies where the method is exposed on the proxy, instead of silently falling back to the target.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
spring-projects__spring-retry__255
spring-projects/spring-retry
255
defect
6c59c0db38d6bcb491d382c48b0ae2504db1693c
ed3fcbea9555727a622a4a6355d9391657c33b73
Fixes GH-254
GH-254: Nice to have: notRetryOn() and retryOn() in RetryTemplateBuilder Fixes https://github.com/spring-projects/spring-retry/issues/254 Add method with list parameter by overloading existed method
diff --git a/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java b/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java index dd5bdbad..635131de 100644 --- a/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java +++ b/src/main/java/org/springframework/retry...
4
4
0
[{"id": "G0", "claim": "Add `@since 1.3.2` to both new public methods and add the author's name to the `@author` list of both affected classes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `@author` entry should use the contributor's legal n...
null
spring-projects__spring-retry__277
spring-projects/spring-retry
277
defect
14c7217bbc70c81ebd5e0ea045410f7e69f788c4
f76c14afa7f4662454da326acfb7fbd34d05bfaf
GH-276: Expose BackOffPolicy building logic
`BackOffPolicyBuilder` implementation to expose `BackOffPolicy` building logic to other projects. A few quick considerations. My main goals here were consistency with the rest of the project, and reduced risk of breaking behaviors. That impacted a few decisions, such as: * I didn't change anything in the ac...
diff --git a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java index 5b2bd2bf..e1911c5a 100644 --- a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetry...
4
4
0
[{"id": "G0", "claim": "Add a new line at the end of each file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Expose a convenience default builder method such as newDefaultInstance(); the author countered with newDefaultPolicy(), which the revi...
null
spring-projects__spring-retry__289
spring-projects/spring-retry
289
defect
8f8917c6e9cc065e5abb446d632a5420b3479714
8e61c3115e121ee9700a3ce1b603751a982ec263
GH-231: Support Retry Based on Result
Resolves https://github.com/spring-projects/spring-retry/issues/231 Enhance `RetryListener` to allow it to examine the result to determine whether the call should be accepted, or retried according to the retry policy.
diff --git a/README.md b/README.md index 542cb14f..82737eeb 100644 --- a/README.md +++ b/README.md @@ -345,20 +345,26 @@ public interface RetryListener { void open(RetryContext context, RetryCallback<T> callback); + void onSuccess(RetryContext context, T result); + void onError(RetryContext context, Re...
3
3
0
[{"id": "G0", "claim": "The added README sentence ending \"...are called in reverse order\" is missing its final period and should end the sentence properly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `RetryListenerSupport` no-op base clas...
null
spring-projects__spring-retry__298
spring-projects/spring-retry
298
defect
7a86c9eb98b1c6daffd346ba83e98c9a5e8a2b74
b6a7632122f007460cc0ccc374226a0aee5e9aa1
GH-184: Expression Evaluation at Runtime
Resolves https://github.com/spring-projects/spring-retry/issues/184
diff --git a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java index 74585b09..5474fd55 100644 --- a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetry...
4
4
2
[{"id": "G0", "claim": "SimpleRetryPolicy.toString() should call getMaxAttempts() instead of embedding the maxAttemptsSupplier object in the string.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "doBackOff() compares the Supplier instances (this.max...
null
spring-projects__spring-retry__313
spring-projects/spring-retry
313
defect
b08634d6bc10bb72574a1c3dce798de160e51062
5b74a376c0c3f059ca752b1d9604fa1f736519b7
Allow composing `@Retryable` annotation with @AliasFor recover method
Creating a custom annotation composing `@Retryable` will not get the actual recover argument value even when the recover method is annotated with `@AliasFor`. Eg: ``` @Target({ ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented @Retryable(maxAttempts = 4) public @interface C...
diff --git a/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java b/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java index 9c45616e..08601c30 100644 --- a/src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java ...
2
2
0
[{"id": "G0", "claim": "Don't use asterisk imports, add the author's name to the @author list of all affected classes, and update their Copyright to the current year.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an explanation and a sample...
null
spring-projects__spring-retry__326
spring-projects/spring-retry
326
defect
61960f36e720afe8845f9a848a46b64b7216df41
8269df8a05cdcd803138a18d270ccde212f90b38
Add default implementations to `RetryListener`
With Spring Retry 2.0.0, the baseline was lifted from Java 6 to Java 17, which allows to now use default implementations in interfaces. The only purpose of `RetryListenerSupport` is to provide default implementations for `RetryListener`. As such support implementations are no longer required, this PR deprecates `Ret...
diff --git a/src/main/java/org/springframework/retry/RetryListener.java b/src/main/java/org/springframework/retry/RetryListener.java index a2c3af19..56b1e4b5 100644 --- a/src/main/java/org/springframework/retry/RetryListener.java +++ b/src/main/java/org/springframework/retry/RetryListener.java @@ -38,7 +38,9 @@ public ...
4
3
0
[{"id": "G0", "claim": "The tests in RetryListenerSupportTests should be reworked to deal with the new code base instead of suppressing the deprecation warning — let's see if just `new RetryListener()` is enough for unit tests in this class.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "int...
null
spring-projects__spring-retry__343
spring-projects/spring-retry
343
defect
e6091f790c64394508591052f962b833e2459346
40e96938fee48315f08dfd90294d9486cba26fb7
Add constructor make timeout customisable
Adds a separate constructor to `TimeoutRetryPolicy` to create a new instance with a configurable timeout. This follows the pattern established by other policies, for example, `SimpleRetryPolicy`, that allow to customise their behaviour during instance creation.
diff --git a/src/main/java/org/springframework/retry/policy/TimeoutRetryPolicy.java b/src/main/java/org/springframework/retry/policy/TimeoutRetryPolicy.java index a6a7b82d..ab2f8890 100644 --- a/src/main/java/org/springframework/retry/policy/TimeoutRetryPolicy.java +++ b/src/main/java/org/springframework/retry/policy/T...
3
3
0
[{"id": "G0", "claim": "The new constructor Javadocs must be imperative in wording (\"Create a new instance...\" rather than \"Creates a new instance...\") per the Spring Framework Code Style Javadoc formatting rules.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
spring-projects__spring-retry__344
spring-projects/spring-retry
344
defect
95464af8c2b0774632518c8eb70f79c38f013826
ff0588e618093ba06b3c0ad9d3e7e2ded0f1504a
Add support of Duration in RetryTemplateBuilder
Introduce java.time.Duration as an alternative to express timeouts and intervals when building RestTemplate.
diff --git a/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java b/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java index 701b131c..d0aaf138 100644 --- a/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java +++ b/src/main/java/org/springframework/retry...
5
4
0
[{"id": "G0", "claim": "withinMillis() is not a suitable name for a java.time.Duration argument, so withinMillis should be deprecated and a withTimeout(long) overload added instead (offered as a follow-up PR).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
spring-projects__spring-retry__359
spring-projects/spring-retry
359
defect
41b7df83bbbd79865f2dc99ca7d45ed353eae7d9
e19e4f904afa7773ca43802d06b593c93bc252b3
Overhaul Javadoc of `RetryTemplateBuilder`
While working on `RetryTemplateBuilder`, I noticed a couple of typos, some confusing explanations, a lack of descriptions of error conditions, and that it does not always follow the Spring Framework style guide. So I tried my best to improve it. If you're not happy with some choices I made, feel free to edit it your...
diff --git a/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java b/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java index 367e9508..2363b4bf 100644 --- a/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java +++ b/src/main/java/org/springframework/retry...
2
2
0
[{"id": "G0", "claim": "The Javadoc of withListeners at line 509 must use the imperative mood per the Spring Framework code style, like the other places the PR already fixed.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The copyright headers of ...
null
spring-projects__spring-retry__392
spring-projects/spring-retry
392
defect
c89b9516d9763cbb97689071dc4c8dc50090bf1e
22d501e1eed00962e651edb543bade8b34427f80
GH-211: Provide the ability to exclude global retryListeners
Hey folks, I was evaluating this library in detail for the use in our enterprise project and came across an issue that seemed rather trivial to carry out an implementation for as per @artembilan's suggestion here: https://github.com/spring-projects/spring-retry/issues/211#issuecomment-1761945504. To the best of my...
diff --git a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java index c4cbde54..2f906dee 100644 --- a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetry...
1
1
0
[{"id": "G0", "claim": "The new Javadoc for the listeners attribute should be reworded from 'effectively exclude all retry listeners, along with the default ones, from being used' to 'effectively exclude all retry listeners, including with the default listener beans, from being used'.", "category": "documentation", "ve...
null
spring-projects__spring-retry__428
spring-projects/spring-retry
428
defect
94424350e1f04fa7f635d37db77ec73f9755160e
1e94041b93916e2a1e4cda111a358940cfcee4c2
GH-427: Add fix for the issue with multiplierExpression and randomExp…
This PR fixes the issue explained here: [Issue number 427](https://github.com/spring-projects/spring-retry/issues/427). Please comment if there is any feedback.
diff --git a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java index 2f906dee..53c87084 100644 --- a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetry...
6
5
3
[{"id": "G0", "claim": "The problem is exactly with the gate `if (multiplier > 0)`: when `multiplierExpression` is expected to be evaluated at runtime for each call rather than as a one-time SpEL template, `multiplier` is never going to be > 0 and the code never determines anything for `random`.", "category": "correctn...
null
spring-projects__spring-retry__465
spring-projects/spring-retry
465
defect
db47bc66fd2bda5262accb45f4dba2b75b134da3
d0c5887be7ce0b95d27a435f024883d2b240faf3
Fix backOff API in UniformRandomBackOffPolicy
When maxBackOffPeriod is less than minBackOffPeriod, delta is taken taken as zero in UniformRandomBackOffPolicy backOff method.
diff --git a/src/main/java/org/springframework/retry/backoff/UniformRandomBackOffPolicy.java b/src/main/java/org/springframework/retry/backoff/UniformRandomBackOffPolicy.java index 68249f7b..8bc96c06 100644 --- a/src/main/java/org/springframework/retry/backoff/UniformRandomBackOffPolicy.java +++ b/src/main/java/org/spr...
2
1
0
[{"id": "G0", "claim": "The two Supplier.get() calls in doBackOff should be extracted into local variables (min and max) and used consistently within a single backOff() call, because calling get() again per expression may return different values mid-call and lead to unexpected behavior.", "category": "correctness", "ve...
null
spring-projects__spring-retry__471
spring-projects/spring-retry
471
defect
b98b2a55a0d5c5af1b50ce2620a871bde44e40a3
8605e190e31cbba49baa5bd5aa35928b9bae5416
feat: setter for logger field of RetryTemplate
fixes: https://github.com/spring-projects/spring-retry/issues/470 Because there is no Auto-Configuration I think it is fine to just add the hint without restrictions or class checks.
diff --git a/pom.xml b/pom.xml index 81ec1434..845b6717 100644 --- a/pom.xml +++ b/pom.xml @@ -162,6 +162,9 @@ <build> <resources> + <resource> + <directory>src/main/resources</directory> + </resource> <resource> <directory>.</directory> <targetPath>META-INF</targetPath> diff --git a/src/mai...
2
2
1
[{"id": "G0", "claim": "Avoid reflection altogether and rework the contribution into a setter for the `log` field of RetryTemplate instead of the AOT reflection hints approach.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "As follow-up work, Spring Clou...
null
spring-projects__spring-retry__490
spring-projects/spring-retry
490
defect
544b24e19507571a6ce5e01c41a089ed4f801d9e
44dd551c19edbc4f049b4ee05196fbd71a18ed73
Fix proxy attribute name mismatch in RetryOperationsInterceptor
* Changed removeAttribute to use the same key as setAttribute("___proxy___"). * Fixed an issue where a proxy reference remained in the context due to the previous "__proxy__" key mismatch. Found a small bug: I might be mistaken, but I think the proxy key mismatch is preventing removal. Please have your team take a...
diff --git a/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java index a8eba86d..2a25cb1b 100644 --- a/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java +++ b/src/main/...
3
3
2
[{"id": "G0", "claim": "The Git client must use the contributor's legal name: the `Signed-off-by: junhyeongkim2 <ggprgrkjh@naver.com>` line is not an official name, and without a DCO-compliant sign-off the contribution cannot be accepted.", "category": "compliance", "verdict": "supported", "priority": "P1", "scope": "i...
null
spring-projects__spring-retry__492
spring-projects/spring-retry
492
defect
47a23591ff8911e1dd5fe96a48c51403ae6dcdeb
0e6f529c53d54b40c6f9f696ddc9ebd319c84ca9
Add warnings for invalid setter values in ExponentialBackoffPolicy
This PR addresses #352 by adding warning logs when invalid values are provided to ExponentialBackoffPolicy setters. ## Changes - Added warning logs in `setInitialInterval()` when value < 1 - Added warning logs in `setMultiplier()` when value <= 1.0 - Added warning logs in `setMaxInterval()` when value <= 0 ## ...
diff --git a/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java b/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java index 25556a74..e3d9f876 100644 --- a/src/main/java/org/springframework/retry/backoff/ExponentialBackOffPolicy.java +++ b/src/main/java/org/springfra...
6
6
3
[{"id": "G0", "claim": "The setLogger() setter must not be exposed to end-users; use reflection (e.g. DirectFieldAccessor) in the tests instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Each invalid-value warning sentence says the same thing twice;...
null
spring-projects__spring-security__15202
spring-projects/spring-security
15,202
defect
3acd2c65d95c342009efa4d166b49fdfae477f82
20a08b7593cb527d08236c156463578412c20b41
GH-15201 Introduce ExpressionJwtGrantedAuthoritiesConverter to extract nested authorities via SpEL expression
This helps to reduce custom code necessary to extract roles from deeply nested claims. Fixes #15201 <!-- For Security Vulnerabilities, please use https://pivotal.io/security#reporting --> <!-- Before creating new features, we recommend creating an issue to discuss the feature. This ensures that everyone is ...
diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtGrantedAuthoritiesConverter.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtGrantedAuthoritiesConverter.java index bc625...
1
1
1
[{"id": "G0", "claim": "The expression-based authority mapping should live in a separate class (e.g. ExpressionJwtGrantedAuthoritiesConverter) rather than being added to JwtGrantedAuthoritiesConverter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-projects__spring-security__15748
spring-projects/spring-security
15,748
defect
c0a10b90ba0b09f6a579136ab076150f33ddb29b
d6a2ae4e0c2b7491b0738ae150decaa2cf665989
Use SessionAuthenticationStrategy for Remember-Me authentication
As described in gh-2253, the `RememberMeAuthenticationFilter` does not call the configured `SessionAuthenticationStrategy` if there is one, and therefore concurrent session control does not work properly. This PR adapts the `RememberMeAuthenticationFilter` so that it calls the `SessionAuthenticationStrategy` on succ...
diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/RememberMeConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/RememberMeConfigurer.java index 0125a22baed..e576c1d22ee 100644 --- a/config/src/main/java/org/springframework/...
1
1
1
[{"id": "G0", "claim": "Add a unit test confirming the desired behaviour (concurrency control) works, for example when the DSL configures a maximum number of sessions and the remember-me filter exceeds it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-projects__spring-security__15853
spring-projects/spring-security
15,853
defect
3b20844700fc045e8797798d8a1317e05962dfd1
4416beb110939783011c57bb4c3878b17e52627f
JwtDecoders should support issuer hostnames containing underscores
Closes #15852 By using `UriComponentsBuilder.fromUriString` we stay in a single semantic context and do not loose information. <!-- For Security Vulnerabilities, please use https://pivotal.io/security#reporting --> <!-- Before creating new features, we recommend creating an issue to discuss the feature. Thi...
diff --git a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/JwtDecoderProviderConfigurationUtils.java b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/JwtDecoderProviderConfigurationUtils.java index 36ca9b68689..46697d2ab96 100644 --- a/oauth2/oauth2-jose/src/main/jav...
4
3
1
[{"id": "G0", "claim": "Add tests for both servlet and reactive that show that the underscore-hostname behaviour is now repaired.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be better to focus on addressing the underlying issue in Spring Fra...
null
spring-projects__spring-security__17191
spring-projects/spring-security
17,191
defect
5517d8fe3a2b4d2ea85e1e06b42e55caaadb04a8
eda2fe90b7c5d9402100a320a7a69582cd004c2c
Support custom `OAuth2AuthenticatedPrincipal` in Jwt-based authentication flow
This PR implements a simpler approach, as suggested by @jzheaux, to support `OAuth2AuthenticatedPrincipal` injection into `JwtAuthenticationToken` Resolves: #6237
diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationConverter.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationConverter.java index 959abc30e67.....
6
6
3
[{"id": "G0", "claim": "The new JwtAuthenticationToken constructor (Jwt, Object, Collection<? extends GrantedAuthority>) makes call sites like new JwtAuthenticationToken(jwt, authorities, null) ambiguous with the existing (Jwt, Collection, String) constructor, so the build fails now.", "category": "correctness", "verdi...
null
spring-projects__spring-security__17801
spring-projects/spring-security
17,801
defect
36f1de945f229b66080025c81353173db12da92e
7c436a28fecdb19c4f3efd249cd243d73241eaba
Cleanup
This PR includes - Use `StringUtils#hasLength` - Remove redundant check and exception - Update javadoc - Polish some methods
diff --git a/cas/src/main/java/org/springframework/security/cas/web/authentication/DefaultServiceAuthenticationDetails.java b/cas/src/main/java/org/springframework/security/cas/web/authentication/DefaultServiceAuthenticationDetails.java index bb5fe0d7932..7bb43d319e0 100644 --- a/cas/src/main/java/org/springframework/s...
8
7
0
[{"id": "G0", "claim": "Consider folding the query null check into the ternary in getQueryString so it reads `String result = (query == null) ? \"\" : artifactPattern.matcher(query).replaceFirst(\"\");` followed by the isEmpty check.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing...
null
spring-projects__spring-security__17878
spring-projects/spring-security
17,878
defect
10935632ee59ae6f104de6cfb22a6cdb39b60a2c
57d9678b4bad7c30f48243fb21013b4ce557a6d1
Ability to configure authenticationDetailsSource in AnonymousConfigurer
Closes gh-17831 <!-- For Security Vulnerabilities, please use https://pivotal.io/security#reporting --> <!-- Before creating new features, we recommend creating an issue to discuss the feature. This ensures that everyone is on the same page before extensive work is done. Thanks for contributing to Spring Se...
diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/AnonymousConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/AnonymousConfigurer.java index ab9770a13e8..505f6f35a51 100644 --- a/config/src/main/java/org/springframework/se...
2
2
2
[{"id": "G0", "claim": "The new authenticationDetailsSource DSL method on AnonymousConfigurer should be dropped and the filter configured through object post-processing instead, since the DSL already allows providing the complete filter and rarely-configured components should not each be exposed.", "category": "design"...
null
spring-projects__spring-security__18050
spring-projects/spring-security
18,050
defect
979ac7c336e67ef54abdc267286a657fcb41ed17
d215dc554db800f546853c9211fe21846b74d9cd
Enhancements to Authentication#toBuilder
This PR moves `Authentication#toBuilder` to a new sub-interface, `BuildableAuthentication`. This will improve passivity in the Security 7.0 release for applications that are using custom authentication implementations and relying on those concrete types. Specifically, instead of doing: ```java Authentication mer...
diff --git a/cas/src/main/java/org/springframework/security/cas/authentication/CasAuthenticationToken.java b/cas/src/main/java/org/springframework/security/cas/authentication/CasAuthenticationToken.java index c05d5c5964c..720984d2494 100644 --- a/cas/src/main/java/org/springframework/security/cas/authentication/CasAuth...
1
1
1
[{"id": "G0", "claim": "Keep the Builder interface in Authentication rather than in BuildableAuthentication, so that classes can have a static builder method independent of implementing BuildableAuthentication.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-projects__spring-security__18134
spring-projects/spring-security
18,134
defect
20ae9dc6bc7a4d8ef3cb36d218410aa49033ddd5
5cc296d00264e452ffc05793c9581cbb57a58ca2
Fix Formatting in mfa.adoc
<!-- For Security Vulnerabilities, please use https://pivotal.io/security#reporting --> <!-- Before creating new features, we recommend creating an issue to discuss the feature. This ensures that everyone is on the same page before extensive work is done. Thanks for contributing to Spring Security. Please prov...
diff --git a/docs/modules/ROOT/pages/servlet/authentication/mfa.adoc b/docs/modules/ROOT/pages/servlet/authentication/mfa.adoc index a19de73e749..7bbe6072b1d 100644 --- a/docs/modules/ROOT/pages/servlet/authentication/mfa.adoc +++ b/docs/modules/ROOT/pages/servlet/authentication/mfa.adoc @@ -44,14 +44,14 @@ The `@Enabl...
1
1
1
[{"id": "G0", "claim": "The PR's changes from the xref macro to the shorthand xref notation in mfa.adoc should be removed (unless there is a good reason the team approves of), because the shorthand xref has limitations such as not working with the assembler extension.", "category": "documentation", "verdict": "supporte...
null
spring-projects__spring-security__18276
spring-projects/spring-security
18,276
defect
29b9dc6f0431d8f9f377d1be0296ae873cbfe410
57a266dd4f132698727af9dd1a5d29b9c9c3c8bc
ServerHttpSecurityConfiguration should not set userDetailsPasswordService to a null value
... when using `ReactiveUserDetailsService` without `ReactiveUserDetailsPasswordService`. The existing test uses a `MapReactiveUserDetailsService` that implements `ReactiveUserDetailsPasswordService`, which does not trigger the error. fixes gh-17986
diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/reactive/ServerHttpSecurityConfiguration.java b/config/src/main/java/org/springframework/security/config/annotation/web/reactive/ServerHttpSecurityConfiguration.java index 1bff8f5dcb3..8a4d6f46b62 100644 --- a/config/src/main/java/org/...
3
2
0
[{"id": "G0", "claim": "Add `proxyBeanMethods = false` to the `@Configuration` annotation on the new ReactiveUserDetailsServiceOnlyTestConfiguration to avoid unwanted proxies.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the test method loa...
null
spring-projects__spring-security__18482
spring-projects/spring-security
18,482
defect
5a7d93ee3b6658fbd03f0f57daeb42d3f382016d
c6950bc1a2fd9c3581cb319a656af7bf77166b2e
Fix spring-security-oauth2-core compiler warnings
Replace the manual instantiation of `HttpMessageReader`s with `ClientCodecConfigurer.create().getReaders()`. Closes: gh-18434
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 87b5fcd62f5..ca5f95959bf 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -52,6 +52,10 @@ gradlePlugin { id = "org.springframework.security.check-expected-branch-version" implementationClass = "org.springframework.security.CheckEx...
2
2
2
[{"id": "G0", "claim": "The PR should include the steps to Configure Error on Warning from issue #18405 so that compiler warnings are not reintroduced.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The enforcement plugin should be a .gradle pre-compiled...
null
spring-projects__spring-security__18562
spring-projects/spring-security
18,562
defect
42e1e9fb67fe0226e0105dbb322b780f8ba6d93d
e0ef1d655c60f8a77e2427cd99bf1f3c2be39e4d
Remove compiler warnings for spring-security-oauth2-authorization-server
## Summary Closes #18432 - AOT/runtime hints in the OAuth2 Authorization Server module - Before: Included ACCESS_DECLARED_FIELDS, which is no longer applicable in Spring Framework 7 and could trigger compiler warnings. - After: Removed ACCESS_DECLARED_FIELDS, keeping only the required INVOKE_DECLARED_* categ...
diff --git a/oauth2/oauth2-authorization-server/spring-security-oauth2-authorization-server.gradle b/oauth2/oauth2-authorization-server/spring-security-oauth2-authorization-server.gradle index 0d19d51df5d..6d0dfca6e4d 100644 --- a/oauth2/oauth2-authorization-server/spring-security-oauth2-authorization-server.gradle +++...
3
3
3
[{"id": "G0", "claim": "The jackson2Present branch of registerHints must continue to register the Jackson 2 modules for passivity (the S1 change replaced them with the Jackson 3 module classes), and the registration should be extracted into a separate method with a suppression on it.", "category": "correctness", "verdi...
null
spring-projects__spring-security__18580
spring-projects/spring-security
18,580
defect
0a182f1f20ef7abe743f63d717a8ca60b54bd541
116913ef78520ea6477b102361925cf94a4d5770
Remove compiler warnings in spring-security-data
## Summary - Add compile-warnings-error plugin to data module - Remove deprecated setDefaultRolePrefix() call in getRootObject() - Add @SuppressWarnings deprecation for tests using deprecated methods - Add tests using AuthorizationManagerFactory ## Test - [x] `./gradlew --no-build-cache clean :spring-secur...
diff --git a/data/spring-security-data.gradle b/data/spring-security-data.gradle index e80cd87b3dd..da00aa16687 100644 --- a/data/spring-security-data.gradle +++ b/data/spring-security-data.gradle @@ -4,6 +4,7 @@ plugins { } apply plugin: 'io.spring.convention.spring-module' +apply plugin: 'compile-warnings-error' ...
1
1
1
[{"id": "G0", "claim": "Removing the conditional root.setDefaultRolePrefix(this.defaultRolePrefix) call is a breaking change; this functionality must be preserved (restored) until the deprecation has been removed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
spring-projects__spring-security__18625
spring-projects/spring-security
18,625
defect
eeb080a1917dcd1b7b313d9f2139741529a111a4
e0132f769f0e7d2263b30d9e0aaea428cde5cf2e
Add `postProcessor` to `SpringOpaqueTokenIntrospector` Builders
Fixes https://github.com/spring-projects/spring-security/issues/18623
diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/SpringOpaqueTokenIntrospector.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/SpringOpaqueTokenIntrospector.java index 2cd1a8fb3...
3
3
2
[{"id": "G0", "claim": "Instead of (and in addition to removing) the narrow `authenticationConverter` builder method, the builder should expose a general `postProcessor(Consumer<SpringOpaqueTokenIntrospector>)` hook with an initial no-op value that the `build()` method invokes after constructing the introspector, so se...
null
spring-projects__spring-security__18746
spring-projects/spring-security
18,746
defect
4aa9ff99f5276cb1cc977ee2fdd4073f2e3dbb34
a8c05b959ba07c09b007c838bf869488f3dc1d3d
Add RestClientOpaqueTokenIntrospector
Since similar classes have alternative versions using RestClient instead of RestTemplate, I think we should do the same with this class. Closes: gh-18745
diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/RestClientSpringOpaqueTokenIntrospector.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/RestClientSpringOpaqueTokenIntrospector....
4
4
2
[{"id": "G0", "claim": "Rename RestClientSpringOpaqueTokenIntrospector to RestClientOpaqueTokenIntrospector for brevity.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since everything is introduced in 7.1, leave @since 7.1 off methods, keeping it only o...
null
spring-projects__spring-security__18760
spring-projects/spring-security
18,760
defect
73b055baa90f4c7304ed8d458e08f003713fc131
81ba931e13f0c7cda1724ab19c2acfdb8a51f154
Specify charset in `WWW-Authenticate` for Basic Auth
In this commit, we add support for the charset from [RFC-7617](https://datatracker.ietf.org/doc/html/rfc7617), which definitely solves the problem when the client does not know what charset we are parsing with. Closes: gh-18755
diff --git a/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java b/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationEntryPoint.java index fb81f0e591..0d6c70e857 100644 --- a/web/src/main/java/org/springframework/security/web/au...
6
6
2
[{"id": "G0", "claim": "The charset is always emitted in the WWW-Authenticate header even though RFC 7617 makes it optional, so it should ideally be nullable to comply with the RFC.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Existing tests broke beca...
null
spring-projects__spring-security__18813
spring-projects/spring-security
18,813
defect
e43275d1db67b52001a6f18b4573105649257d03
abc5abefe679d7714ed71950d78b63f83089d4f3
Add MessageExpressionAuthorizationManager
Closes gh-12650 This PR promotes expression-based message authorization to a public API by introducing `MessageExpressionAuthorizationManager` in the messaging module. Changes include: - adding `MessageExpressionAuthorizationManager` and unit tests - updating the WebSocket XML parser to use the new public mana...
diff --git a/config/src/main/java/org/springframework/security/config/websocket/WebSocketMessageBrokerSecurityBeanDefinitionParser.java b/config/src/main/java/org/springframework/security/config/websocket/WebSocketMessageBrokerSecurityBeanDefinitionParser.java index 2201713bd1c..bda1d76dd67 100644 --- a/config/src/main...
2
2
2
[{"id": "G0", "claim": "Leave the deprecated setExpressionHandler method out of the new class rather than adding new @Deprecated API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Replace the public (expressionHandler, expressionString) constructor with...
null
spring-projects__spring-security__18820
spring-projects/spring-security
18,820
defect
f35b4aa5187e26bf27f4d1e1aa00c51a8cda6415
0d25c21c7fc2c66a826cf189b3b54e81a77a6a4d
Remove compiler warnings in spring-security-web
This PR resolves the compiler warnings in the `spring-security-web` module. Some of these warnings were straight forward changes: - `ServerOneTimeTokenAuthenticationConverter`: Replace deprecated call `OneTimeTokenAuthenticationToken.unauthenticated` with `OneTimeTokenAuthenticationToken(String token)` - Update ...
diff --git a/config/src/main/java/org/springframework/security/config/http/RememberMeBeanDefinitionParser.java b/config/src/main/java/org/springframework/security/config/http/RememberMeBeanDefinitionParser.java index 6d4ec68f11d..04616a82ea6 100644 --- a/config/src/main/java/org/springframework/security/config/http/Rem...
1
1
1
[{"id": "G0", "claim": "Removing `extends JdbcDaoSupport` from JdbcTokenRepositoryImpl is a breaking change, so for this PR the `extends` clause should be left in place and this particular warning suppressed instead (with a new implementation deferred to a follow-up issue).", "category": "correctness", "verdict": "supp...
null
spring-projects__spring-security__18938
spring-projects/spring-security
18,938
defect
3386e077e6d98629596c2df02d5342ae78bdd20a
9af42177f87bcd54364d6e150b4e02752a1b3012
Publish authentication events in WebAuthn
Fixes gh-18113 WebAuthnConfigurer creates a ProviderManager directly via new ProviderManager(...), bypassing the AuthenticationManagerBuilder pipeline that normally injects the AuthenticationEventPublisher. As a result, WebAuthn authentication always uses ProviderManager's default NullEventPublisher, silently ign...
diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/WebAuthnConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/WebAuthnConfigurer.java index f4cdfd95723..9985947f552 100644 --- a/config/src/main/java/org/springframework/secu...
1
1
0
[{"id": "G0", "claim": "The post-processing of the provider manager should be left out of this commit so the commit shows only what was needed to add events.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-projects__spring-security__18976
spring-projects/spring-security
18,976
defect
2a8976f2f083218b358545eaa900c306e54254f8
78c668db8b77d92765e6d8a0dce20b3b6f60e552
Use idiomatic Kotlin in custom filter documentation
This will make Kotlin and all users more native and readable. Closes: gh-18967 <!-- For Security Vulnerabilities, please use https://pivotal.io/security#reporting --> <!-- Before creating new features, we recommend creating an issue to discuss the feature. This ensures that everyone is on the same page befo...
diff --git a/docs/modules/ROOT/pages/servlet/architecture.adoc b/docs/modules/ROOT/pages/servlet/architecture.adoc index 280f376446..92e0a34582 100644 --- a/docs/modules/ROOT/pages/servlet/architecture.adoc +++ b/docs/modules/ROOT/pages/servlet/architecture.adoc @@ -246,9 +246,15 @@ Instead of implementing `Filter`, yo...
2
1
1
[{"id": "G0", "claim": "The documentation should show the `before` example first and then the `after` example, rather than `after` and then `before`.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Declaring both `SecurityFilterChain` beans in the ...
null
spring-projects__spring-session__1800
spring-projects/spring-session
1,800
defect
c93513f18f00081eac5c05475f4f5ef727e577aa
a9b08e2d371298ab3a480c32444a968b5057b2c2
Fix Redis session expiration entry deletion
fixes redis session expiration entry deletion see #1799 for details
diff --git a/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisSessionExpirationPolicy.java b/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisSessionExpirationPolicy.java index 104991567c..c19a48fb09 100644 --- a/spring-session-data-redis/src/main/ja...
2
2
0
[{"id": "G0", "claim": "Update the Apache license header copyright year to go up to 2021 in the files modified by this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add `Closes gh-585` to the commit message so the pull request is au...
null