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-experimental__spring-boot-migrator__977 | spring-projects-experimental/spring-boot-migrator | 977 | defect | f16447edace649fe39dc9293e07933b8a6b17636 | 1200075c0d55ddd715db94ce7b3409e72afdcab8 | Updated IgnoredPatterns & Added support for more Rewrite recipes | - Updated IgnoredPatterns
- Added support for more Rewrite recipes | diff --git a/sbm-support-rewrite/pom.xml b/sbm-support-rewrite/pom.xml
index 4be8876c6..49be4a5b4 100644
--- a/sbm-support-rewrite/pom.xml
+++ b/sbm-support-rewrite/pom.xml
@@ -22,6 +22,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>3.1.3</spring-boot.vers... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request's change to the default ignored-path patterns leaves the existing ParserPropertiesTest failing, and the failing tests should be adjusted.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The 'recipe' jars (org.... | null |
spring-projects__spring-ai__1616 | spring-projects/spring-ai | 1,616 | defect | c02d13647e0241ebc04b0cdfd1d6ae4c962461f8 | effe4906d2765fc6b7944b23b92a3c90bb82e92f | GH-513 fix: Support custom field names for Milvus VectorStore collection | - Add configuration properties to override the default field names for doc_id, content, metadata and embedding
- Add support to allow auto-id when enabled
- Add tests
Resolves #513
| diff --git a/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/milvus/MilvusVectorStoreAutoConfiguration.java b/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/milvus/MilvusVectorStoreAutoConfiguration.java
index e22d53b... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new MilvusVectorStoreCustomFieldNamesIT test class, its test methods, its nested TestApplication class and its @Bean methods should drop the redundant `public` modifier and use default (package-private) access.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "intro... | null |
spring-projects__spring-ai__4131 | spring-projects/spring-ai | 4,131 | defect | ecc33171dea01511052d2ef9ed13f9a683c93e3e | 4ab833a1885a6add1379791771d2443050f3a8a2 | Fix: Make metadata mutable in AzureVectorStore (Azure AI Search) | ## Summary
When running a similarity search against Azure AI Search, `AzureVectorStore` injects the computed distance into the document metadata. For results with no metadata, the previous code used `Map.of()` (immutable), so `metadata.put(...)` could throw an `UnsupportedOperationException`.
This PR ensures the ... | diff --git a/vector-stores/spring-ai-azure-store/src/main/java/org/springframework/ai/vectorstore/azure/AzureVectorStore.java b/vector-stores/spring-ai-azure-store/src/main/java/org/springframework/ai/vectorstore/azure/AzureVectorStore.java
index d105971198..f028677dfb 100644
--- a/vector-stores/spring-ai-azure-store/s... | 3 | 3 | 0 | [{"id": "G0", "claim": "parseMetadataToMutable should use a regular HashMap instead of LinkedHashMap, since ordering has no functional effect and HashMap is more efficient.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request does not add... | null |
spring-projects__spring-ai__4855 | spring-projects/spring-ai | 4,855 | defect | 74eabfbb442d4605eaf86ce6f686801ebb35fe0e | f5bda124414563a047766714754368512e1bcb31 | Validate inputSchema for MCP tool definitions | - For both Sync/Async toolcallbacks, verify the inputSchema when setting the Spring AI ToolDefinition
- This is needed for the cases where the MCP servers that provide Tools with incomplete inputSchema. In particular schemas that doesn't include JSON schema parameters such as "properties" when parameterless tool... | diff --git a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-webflux/src/test/java/org/springframework/ai/mcp/server/autoconfigure/McpToolCallbackParameterlessToolIT.java b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-webflux/src/test/java/org/springframework/ai/mcp/server/autoconfigure/McpTool... | 3 | 3 | 1 | [{"id": "G0", "claim": "The integration test should add an assertion that additionalProperties is preserved (retained after schema normalization).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test's fixed date string \"2025-11-11T12:00:00Z\" could... | null |
spring-projects__spring-amqp__1018 | spring-projects/spring-amqp | 1,018 | defect | 3edcd9a55e461dd7ef7c9348301f309e66266624 | d84e650677b67aaf1447094c7e2a437ef0fa38c8 | DMLC: Publish event for connection failure | The `DirectMessageListenerContainer` did not publish a listener
failed event for a connection failure.
**cherry-pick to all 2.x branches**
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainer.java
index 52b6ec6812..adf9a1575f 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new testBadHost test should destroy the executor it creates, as the other tests do.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1023 | spring-projects/spring-amqp | 1,023 | defect | feea3680f520857575ea5385877a7b3864350b20 | d8cdd95e5d5d8af0ce129c58482a53de001f1a49 | GH-1021: Fix `@SendTo` after error is handled | https://github.com/spring-projects/spring-amqp/issues/1021
Sending the result from a `RabbitListenerErrorHandler` was broken
for class-level `@RabbitListener` because the send to expression
was lost.
**cherry-pick to 2.1.x**
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/DelegatingInvocableHandler.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/DelegatingInvocableHandler.java
index 045c1dc5ea..8ca8a5fba3 100644
--- a/spring-rabbit/src/main/java/org/springframewo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `Type` passed to the error-path InvocationResult is still null; it would work better with POJOs if a type were sent here.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1033 | spring-projects/spring-amqp | 1,033 | defect | c1e31798961262795c4aa2b4bab3f0f67fedda26 | 99e6cb1010ee4afe323ca581bc6fda3d40c312ac | GH-1032: Add consumer-side batching support | Resolves https://github.com/spring-projects/spring-amqp/issues/1032
- Needs (a lot) more tests
- Needs support in `@RabbirtListener` | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/BatchMessageListener.java b/spring-amqp/src/main/java/org/springframework/amqp/core/BatchMessageListener.java
new file mode 100644
index 0000000000..d62325e58d
--- /dev/null
+++ b/spring-amqp/src/main/java/org/springframework/amqp/core/BatchMessageLis... | 11 | 10 | 1 | [{"id": "G0", "claim": "The pull request does not cover support in `@RabbitListener`, and that remaining work should be considered in a separate PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There are a couple of typos in the pull request that shoul... | null |
spring-projects__spring-amqp__1043 | spring-projects/spring-amqp | 1,043 | defect | b4bd47bceecd0a898ab1897a792741ab15881c7e | ca5286b811390772c84c35e99e62e0a2ad6160ef | GH-1038: RT: More evaluateFastReplyTo Fixes | Fixes https://github.com/spring-projects/spring-amqp/issues/1038
The previous fix to catch `AmqpConnectException` was incorrect - the
`ShutdownSignalException` for the passive queue declaration failure
is wrapped in an `AmqpConnectException` so we would have failed to
detect the failure.
Also, it has been repo... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index 38369eb21d..f7fd0463aa 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/sp... | 3 | 2 | 1 | [{"id": "G0", "claim": "The logger.warn() call is wrapped in an isDebugEnabled() guard, so the guard level does not match the logged level — is that intended?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A space is needed after the colon in the \"... | null |
spring-projects__spring-amqp__1051 | spring-projects/spring-amqp | 1,051 | defect | 7f4146154201d2d0fffc2f08c7e1766ef1a70536 | 24a8715a15cc793ddd8bfa8486935eaf80727735 | GH-1049: Support SaslConfig in logging appenders | Resolves https://github.com/spring-projects/spring-amqp/issues/1049
**cherry-pick to 2.1.x**
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java
index eb728fa97a..3d42e6bd4a 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/ra... | 3 | 3 | 1 | [{"id": "G0", "claim": "The String switch in RabbitUtils.stringToSaslConfig does not work with Java 6, so the code cannot be used as-is on the Java 6-based branch this change is meant to be back-ported to.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
spring-projects__spring-amqp__1073 | spring-projects/spring-amqp | 1,073 | defect | 28e91034d6668725ae63d1c18143892629711354 | d677a756d2ce52560739a75189ae43d1468f4eb4 | Convert repeated tests to JUnit 5 @RepeatableTest | - add lifecycle to `@LogLevels` to avoid adjusting the log on each iteration
- with `@RepeatableTest` there is a template context between the class and method contexts
| diff --git a/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/LogLevels.java b/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/LogLevels.java
index de34361d55..56b162ac4d 100644
--- a/spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/LogLevels.java
++... | 4 | 3 | 1 | [{"id": "G0", "claim": "The level() default should be reverted from \"DEBUG\" to an empty string so the default really comes from the target Log4j implementation (Level.toLevel()), which currently defaults to DEBUG but might change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existin... | null |
spring-projects__spring-amqp__1095 | spring-projects/spring-amqp | 1,095 | defect | c7464979220984c91bbd1edd7496eb854190f28c | 2fc29eef72d9268d49cd78aba887818ad81d60cc | Add DeflaterPostProcessor and InflatorPostProcessor classes | This is adding DeflaterPostProcessor and InflatorPostProcessor classes to the org.springframework.amqp.support.postprocessor as well as a few unit tests. I did my best to follow the style and logic of how Gary coded the other PostpProcessor classes.
Related to this issue I created earlier today:
https://github.com... | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/DeflaterPostProcessor.java b/spring-amqp/src/main/java/org/springframework/amqp/support/postprocessor/DeflaterPostProcessor.java
new file mode 100644
index 0000000000..4a7b602e3d
--- /dev/null
+++ b/spring-amqp/src/main/java/org/sprin... | 5 | 5 | 0 | [{"id": "G0", "claim": "The new DeflaterPostProcessor copyright header should say only the current year (2019), not 2014-2019, since the class is entirely new.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @since tag on DeflaterPostProcessor ... | null |
spring-projects__spring-amqp__1120 | spring-projects/spring-amqp | 1,120 | defect | e707f517bb625fac30278341103821611b603a12 | 1dfa630f51ab64fbb839102888e92a631a199eb0 | Add ContainerCustomizer | - deprecate containerConfigurer `Consumer<C>` to more easily facilitate
Boot auto configuration.
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java
index 69d81ed9cd..77be8c9e25 100644
--- a/spring-rabbit/src/main/java/org/springfra... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request adds a new ContainerCustomizer feature with no reference documentation; docs on the matter should be added.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1126 | spring-projects/spring-amqp | 1,126 | defect | 24a938834fa7f04c0a21e08c3cb192751ba8519c | d893c0eac47bd9122c24176a184ed9044e48b0b0 | GH-1125: Add DeclarableCustomizer | Resolves https://github.com/spring-projects/spring-amqp/issues/1125
- pull up the common `arguments` field to `AbstractDeclarable`
- add `x-single-active-consumer` as a first class `QueueBuilder` argumemt
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java b/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java
index 2862745855..5a6ac64eff 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java
+++ b/spring-amqp/src/m... | 4 | 3 | 3 | [{"id": "G0", "claim": "The new AbstractDeclarable(Map) constructor makes an explicit argument mandatory where only a default constructor existed before, which looks like a breaking change in a point release.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
spring-projects__spring-amqp__1149 | spring-projects/spring-amqp | 1,149 | defect | abc96cf829cabe48b21c79c3987742ebf30c135a | 5afabf4d8baa071f05491235adba3e31b5474b34 | GH-1148: Log4jAppender - fix initialization cycle | Resolves https://github.com/spring-projects/spring-amqp/issues/1148
Defer creation of all Spring static loggers from appender until the
appender is initialized.
The first logger (e.g. Spring Boot) initializes the static `LoggerContext`
field in `LogAdapter.Log4jLog`; this, in turn initializes the appender.
H... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java
index 0904f2fe7a..a9c844b765 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/log4j2/AmqpAppender.java
+++ b/sp... | 2 | 2 | 0 | [{"id": "G0", "claim": "Now that the change makes rabbitTemplate non-final and lazily initialized, the field may have to be declared volatile for visibility across threads.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The // NOSONAR suppression fo... | null |
spring-projects__spring-amqp__1153 | spring-projects/spring-amqp | 1,153 | defect | 9e4ba4f2cb85d4bc3fcad99f895a125d7bbd2a8f | 067b4b528b80c3f1128efb512afe8f1c766e89a9 | GH-1152: Use contentEncoding in Message.toString() | Resolves https://github.com/spring-projects/spring-amqp/issues/1152
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/Message.java b/spring-amqp/src/main/java/org/springframework/amqp/core/Message.java
index 4e7b6a1b53..5a2a910f0e 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/Message.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp... | 1 | 1 | 1 | [{"id": "G0", "claim": "messageProperties could be null at the point where getBodyContentAsString() dereferences this.messageProperties.getContentEncoding().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1176 | spring-projects/spring-amqp | 1,176 | defect | e8264283c888655a0a77d134c67cc3ee52d3a827 | 74a5f626fac1372389028325acf30570834e039f | GH-1175: Add @SpringRabbitTest | Resolves https://github.com/spring-projects/spring-amqp/issues/1175
- provision boilerplate infrastructure
| diff --git a/build.gradle b/build.gradle
index a24a42a289..ddfa2ade6e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -396,7 +396,7 @@ project('spring-rabbit-junit') {
exclude group: 'org.springframework', module: 'spring-web'
}
api 'org.springframework:spring-web'
- optionalApi 'org.junit.jupiter:junit-jupi... | 3 | 2 | 1 | [{"id": "G0", "claim": "The annotation should not be implemented via a JUnit 5 Condition-based mechanism because users cannot be guaranteed to always use JUnit 5, and it should instead be based on Spring Test's ContextCustomizer and ContextCustomizerFactory.", "category": "design", "verdict": "supported", "priority": "... | null |
spring-projects__spring-amqp__1189 | spring-projects/spring-amqp | 1,189 | defect | 05472a536aa97740c1be9d3adfd272c8eaf5f10d | d660dcf4853d6849e63c2882e8518c4ebe8ad692 | AMQP-608: Add new connection factories | JIRA https://jira.spring.io/browse/AMQP-608
Initial Commit
| diff --git a/build.gradle b/build.gradle
index 65117fdb49..950e801d36 100644
--- a/build.gradle
+++ b/build.gradle
@@ -41,6 +41,7 @@ ext {
assertjVersion = '3.15.0'
assertkVersion = '0.20'
commonsHttpClientVersion = '4.5.10'
+ commonsPoolVersion = '2.8.0'
googleJsr305Version = '3.0.2'
hamcrestVersion = '2.2'
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The JavaDoc of PooledChannelConnectionFactory should be written in an impersonal style rather than addressing the reader as \"you\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reference doc should say \"strict messa... | null |
spring-projects__spring-amqp__1234 | spring-projects/spring-amqp | 1,234 | defect | 36e31beb1fc1dd69c9a176fbb4c913366fa235a4 | 5074d5284e464548c52ac106ef621c532944e094 | Add CorrelationData spring-messaging header | In preparation for https://github.com/spring-cloud/spring-cloud-stream-binder-rabbit/issues/303
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/AmqpHeaders.java b/spring-amqp/src/main/java/org/springframework/amqp/support/AmqpHeaders.java
index 3bc8e5d026..a4f64b6475 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/AmqpHeaders.java
+++ b/spring-amqp/src/main/java/org... | 1 | 1 | 0 | [{"id": "G0", "claim": "RabbitMessagingTemplate.doSend should look up the PUBLISH_CONFIRM_CORRELATION header only once instead of calling get() twice (once for the instanceof check, once with the cast).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1273 | spring-projects/spring-amqp | 1,273 | defect | 60b7a58dce451583ff746c9f85d5d7920d07c8d3 | 3d53fd0ef1be05639cdba330928729d69508d92c | GH-1268: New Factories: Call ConnectionListener(s) | Resolves https://github.com/spring-projects/spring-amqp/issues/1268
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java
index 43a5f00105..b35ec95cd9 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new public method in PooledChannelConnectionFactory should be named resetConnection instead of ResetConnection to follow Java conventions.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new public method in Thread... | null |
spring-projects__spring-amqp__1310 | spring-projects/spring-amqp | 1,310 | defect | 70d79b5ba540932cf8ae765dd05174c427019e26 | fd6b934c720f9987c2333d1a5b37e010716fdb0d | GH-1309: Don't Bind Resource When Sync Not Active | Resolves https://github.com/spring-projects/spring-amqp/issues/1309
If the `RabbitTemplate` was called from a `@TransactionalEventListener`,
with phase `AFTER_COMMIT`, a transaction is "active", but synchronizations
are already cleared. It is too late to synchronize this transaction.
We end up with an orphaned ... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ConnectionFactoryUtils.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ConnectionFactoryUtils.java
index b52092e34e..ede632dee2 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/conne... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test class's @since tag should read 2.2.16 instead of 2.3.6, since the change is being back-ported to 2.2.x.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GitHub Actions run reports a failure in ClientRecoveryC... | null |
spring-projects__spring-amqp__1314 | spring-projects/spring-amqp | 1,314 | defect | 03fca1d6a3f8aff2e46dbfd1eff2bebbc3169673 | eb347a398a9f0e2b9b1c3f8b3c1771cb377c15f6 | GH-1313: Add Message CTOR with default Props | Resolves https://github.com/spring-projects/spring-amqp/issues/1313
**cherry-pick to 2.2.x**
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/Message.java b/spring-amqp/src/main/java/org/springframework/amqp/core/Message.java
index ba2c123759..a98e77d4f8 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/Message.java
+++ b/spring-amqp/src/main/java/org/springframework/amqp... | 1 | 1 | 1 | [{"id": "G0", "claim": "A couple of tests failed in the GH workflow report; see the report.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1316 | spring-projects/spring-amqp | 1,316 | defect | 866868cd5dbaba6f177313994390baceb5a287cc | e69ee18ecb44d7883abb8414441264ac26953c7b | GH-1315: Add onFailed() to ConnectionListener | Resolves https://github.com/spring-projects/spring-amqp/issues/1315
**cherry-pick to 2.2.x**
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactory.java
index f4fd8f140e..ab6e5020ef 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test class's `@since` javadoc tag should read 2.2.17 instead of 2.6.17 (the suggestion block replaces the line).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1332 | spring-projects/spring-amqp | 1,332 | defect | 28d64455428f4b6b654db51520158d56dd2f0074 | 5a5d3aa9229be84c22316c74dd0eb1737a346e71 | GH-1331: ThreadChannelConnFactory Improvements | Resolves https://github.com/spring-projects/spring-amqp/issues/1331
Provide a mechanism so that a thread can hand off its channel(s) to another thread.
Add protection to close a channel that would be orphaned if a second channel is transferred
to the thread and the thread failed to close its channel beforehand.
... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ThreadChannelConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ThreadChannelConnectionFactory.java
index 3d1245b4a7..f9ad13c617 100644
--- a/spring-rabbit/src/main/java/org/springframework/a... | 2 | 2 | 2 | [{"id": "G0", "claim": "Entries put into the contextSwitches map are never removed if a caller calls prepareSwitchContext() but never switchContext(), which looks like a memory leak; at least the map should be emptied on factory destroy().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
spring-projects__spring-amqp__1336 | spring-projects/spring-amqp | 1,336 | defect | e7879503642af908618f9c1ac7e22d0243595d79 | e6dbb7a0206111f7028d222823352b41654bf466 | GH-1335: RejectAndDontRequeueRecoverer Improvement | Resolves https://github.com/spring-projects/spring-amqp/issues/1335
Allow customization of exception message.
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/retry/RejectAndDontRequeueRecoverer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/retry/RejectAndDontRequeueRecoverer.java
index 7e6c4cf366..d619b1389c 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/r... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new API should also provide a plain String-based constructor, for typical consistency with similar constructors elsewhere in the framework.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1349 | spring-projects/spring-amqp | 1,349 | defect | a31d143013c7f339cf7a3cfdefed8b225c1bfd32 | ebd2709ad5827db62375a2c789eccb64ce0420a6 | GH-1347: DMLC Ignored Authentication Failures | Resolves https://github.com/spring-projects/spring-amqp/issues/1347
Container starts and keeps trying to connect instead of honoring
the property.
**cherry-pick to 2.2.x**
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java
index c5ada83da9..d18ccdeedd 100644
--- a/spring-rabbit/src/main/java/org/springframework/a... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new pre-start connection check in DirectMessageListenerContainer should catch PossibleAuthenticationFailureException (as SimpleMessageListenerContainer's AsyncMessageProcessingConsumer does) instead of only AmqpAuthenticationException.", "category": "correctness", "verdict": "supported", "pr... | null |
spring-projects__spring-amqp__1363 | spring-projects/spring-amqp | 1,363 | defect | 4c19d7c13548a494f5f11b3176917e7e518b9b81 | 9cbe8e10cbfffce2d8f0aff249042643565ceb82 | GH-1362: Enable Capture of Tx Synchronization Fail | Resolves https://github.com/spring-projects/spring-amqp/issues/1362
**cherry-pick to 2.3.x**
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AfterCompletionFailedException.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AfterCompletionFailedException.java
new file mode 100644
index 0000000000..259f0d5958
--- /dev/null
+++ b/spring-rabbit/src/mai... | 3 | 2 | 2 | [{"id": "G0", "claim": "The test `resourcesClearedAfterTxFailsWithSync` should reset the flag with `enableAfterCompletionFailureCapture(false)` at the end instead of leaving it set to `true`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The capture fl... | null |
spring-projects__spring-amqp__1364 | spring-projects/spring-amqp | 1,364 | defect | 3004e1dc61ee2bf5be300ceb3ca843cee9b5597e | c86477baa8ede573d55b1f1750175ed0299ddf48 | GH-1352: ConsumerCustomizer Improvements | - pass in the listener id, if available
- narrow to a specific interface to aid Boot auto configuration
- add null check
| diff --git a/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/StreamRabbitListenerContainerFactory.java b/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/StreamRabbitListenerContainerFactory.java
index 411a24be70..7d24a61f32 100644
--- a/spring-rabbit-stream/src/ma... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new ConsumerCustomizer interface should be annotated with @FunctionalInterface.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1366 | spring-projects/spring-amqp | 1,366 | defect | bd088731b08ceb7ca90543e18b19cbf70a21c6c8 | 39f9f9372d09777544726d0e1b75c839f2b5ba42 | GH-1352: Add RabbitStreamTemplate | See https://github.com/spring-projects/spring-amqp/issues/1352
Initial commit of Stream Producer support.
| diff --git a/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/ProducerCustomizer.java b/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/ProducerCustomizer.java
new file mode 100644
index 0000000000..16901ec66b
--- /dev/null
+++ b/spring-rabbit-stream/src/main/j... | 5 | 5 | 2 | [{"id": "G0", "claim": "The ProducerCustomizer Javadoc's phrase \"the creator's bean name\" is confusing; the first parameter should be described as the bean name of the component that calls the customizer.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
spring-projects__spring-amqp__1367 | spring-projects/spring-amqp | 1,367 | defect | c9f1b4c81df6acc4ce4dd644f85d327ee52c742b | 8d101521b1db53a765b4cbd78f38ff380947ba65 | GH-1365: Recover Manual Declarations | Resolves https://github.com/spring-projects/spring-amqp/issues/1365
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java
index fa77077b97..1c0da149cf 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java
+++ b/spring-rabb... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks whether the new `redeclareManualDeclarations` setting will be exposed as a Spring Boot configuration property candidate.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The bean-declaration path appears to add even ... | null |
spring-projects__spring-amqp__1399 | spring-projects/spring-amqp | 1,399 | defect | 57596c6a26be2697273cd97912049b92e81d3f1a | 64a3bc8b9a007c6324b1e1b0b623a3ddba136901 | GH-1396: Declarables constructor is too strict | Resolves https://github.com/spring-projects/spring-amqp/issues/1396
Make constructor more flexible by upper bounded wildcard | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/Declarables.java b/spring-amqp/src/main/java/org/springframework/amqp/core/Declarables.java
index a6726d85d2..d8937e2550 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/Declarables.java
+++ b/spring-amqp/src/main/java/org/springfr... | 5 | 4 | 2 | [{"id": "G0", "claim": "Test classes should carry the `...Tests` suffix, so the new `DeclarablesTest` should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add the contributor's name to the `@author` list of the changed `Declarables`... | null |
spring-projects__spring-amqp__1411 | spring-projects/spring-amqp | 1,411 | defect | 687b515a07f571470a072c656c41950ff92cff75 | 261a8e2ea0a952d0cb68073e5b360b1f5c3926fb | GH-1409: Fix Nacks for Async Replies | Resolves https://github.com/spring-projects/spring-amqp/issues/1409
Normally, when message has a fatal exception (such as message conversion)
`basicNack` with `multiple` true is used, to nack any previously unacked
messages (e.g. when using batch size to limit the ack traffic).
Even when using manual acks, fatal ... | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageListener.java b/spring-amqp/src/main/java/org/springframework/amqp/core/MessageListener.java
index e0dbe8397f..34f786dd44 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageListener.java
+++ b/spring-amqp/src/main/java/... | 3 | 3 | 0 | [{"id": "G0", "claim": "The forced-MANUAL message should be logged at info rather than warn, and the code should not use `this.` for method calls; ideally a single `asyncReplies` option would reconfigure everything else automatically.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
spring-projects__spring-amqp__1423 | spring-projects/spring-amqp | 1,423 | defect | 49bc52d4fd073e12aa908145a87228bd5af02f36 | 9758a9b381235119a02c7e17050ef8754e7688ca | GH-1422: @RabbitListener: Fix Broker-Named Queues | Resolves https://github.com/spring-projects/spring-amqp/issues/1422
Broker-named queues did not work with `@RabbitListener` because the BPP
only passed the name of the queue bean, not the bean itself, into the
endpoint.
Support bean injection; fall back to the previous behavior if a mixture
of beans and names ... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListener.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListener.java
index 59a0cd9941..51c43847c4 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitList... | 2 | 2 | 0 | [{"id": "G0", "claim": "AbstractRabbitListenerEndpoint could be changed so the annotations can mix broker-named queues with named queues, since the listener container's addQueues/addQueueNames contract already permits it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
spring-projects__spring-amqp__1429 | spring-projects/spring-amqp | 1,429 | defect | 5621a6b99246aeeea5c7ec56e1c717865949b90c | 27ff9fc0ada89a419c190161d4bea2b4efb9e2fb | GH-1251: Jackson2JsonMessageConverter Improvements | Resolves https://github.com/spring-projects/spring-amqp/issues/1420
- detect and use `charset` in `contentType` when present
- allow Jackson to determine the decode `charset` via `ByteSourceJsonBootstrapper.detectEncoding()`
- allow configuration of the `MimeType` to use, which can include a `charset` parameter
... | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJackson2MessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJackson2MessageConverter.java
index 8f3e11315e..5c102712d1 100644
--- a/spring-amqp/src/main/java/org/springframework/amq... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new documentation sentence should say the converter detects the charset from the `contentType` message property instead of the `contentEncoding` message property.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1430 | spring-projects/spring-amqp | 1,430 | defect | 909ba571bb096ed8acf77fed43e944f7b8ebb471 | 1d8723ae9519e8fe5a84cde5258aae5c9db75469 | add checkConfirmsAndReturns in addTargetConnectionFactory | There is a little inconsistency in `AbstractRoutingConnectionFactory` that this PR aims to fix.
```
@Bean
ConnectionFactory connectionFactory() {
return new MyAbstractRoutingConnectionFactory(new HashMap<>() {{
put("first", newPooledChannelConnectionFactory());
put("second", newCachingConnec... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java
index 01f12c90aa..39cb7fb6b5 100644
--- a/spring-rabbit/src/main/java/org/springframewo... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test should use Assertions.assertThatNoException() for this type of assertion instead of the try/catch with fail().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR author's name should be added to the @author li... | null |
spring-projects__spring-amqp__1460 | spring-projects/spring-amqp | 1,460 | defect | fe37e0159782198c6583c3d77cf696a32bdb9f44 | 794d0b00d3e00fe021e7781f5f933f66c13255c0 | GH-1459: Improve MeterRegistry Discovery | Resolves https://github.com/spring-projects/spring-amqp/issues/1459
**cherry-pick to 2.4.x** | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/ListenerContainerFactoryBean.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/ListenerContainerFactoryBean.java
index 07c7be9f41..c597f3e887 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "MicrometerHolder should use ObjectProvider.getIfUnique() instead of getBeansOfType() plus a hand-written filterRegistries() to discover the MeterRegistry.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1466 | spring-projects/spring-amqp | 1,466 | defect | e25600b8969fff69737acf222c0f8c3dc39ea04f | 87057497f6a502997a44d02c8bd8fd65796c5cee | GH-1465: Part 1: Provision Super Streams over AMQP | See https://github.com/spring-projects/spring-amqp/issues/1465
Inspired by https://github.com/rabbitmq/rabbitmq-stream-java-client/blob/29b1a3eca72c8e3f719db4fd9fafdf503f37ea20/src/test/java/com/rabbitmq/stream/impl/TestUtils.java#L244-L276
cc/ @acogoluegnes | diff --git a/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/SuperStream.java b/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/config/SuperStream.java
new file mode 100644
index 0000000000..cceeb2821f
--- /dev/null
+++ b/spring-rabbit-stream/src/main/java/org/springfram... | 2 | 2 | 1 | [{"id": "G0", "claim": "The helper should use the existing Declarables(Collection) constructor instead of building an array via toArray().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds the SuperStream feature without any reference ... | null |
spring-projects__spring-amqp__1479 | spring-projects/spring-amqp | 1,479 | defect | fac71c47382585dde20dc7cf12f45633c3f0fafd | 7d362c97179ac63af4553b81f21c8c912bae1afb | GH-1473: Move RabbitFutures to Top Level Classes | - to aid migration from 2.4.x to 3.0.x so that the return types will not change
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate2.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate2.java
index c6e5a4b325..ffc9a24cd1 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate2.java
+++ b... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new RabbitConverterFuture javadoc should say `@since 2.4.7` instead of the wrong `@since 1.6` and should also carry an `@author` tag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new top-level future classes use p... | null |
spring-projects__spring-amqp__1486 | spring-projects/spring-amqp | 1,486 | defect | 97a508e37917559d9c37ca8961b33330e3f055f3 | ebb632debb601ae549da3537eb4d7f4c20dc4f4e | GH-1484: RabbitListener.batch() Override | Resolves https://github.com/spring-projects/spring-amqp/issues/1484
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListener.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListener.java
index 51c43847c4..8b3787075e 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitList... | 4 | 1 | 0 | [{"id": "G0", "claim": "The new @RabbitListener.batch() property should not be a String given that SpEL and property placeholders are unsupported; a boolean or ValueConstants.DEFAULT_NONE would better express the tri-state semantics, unless String is needed to distinguish an empty string from no value.", "category": "d... | null |
spring-projects__spring-amqp__1488 | spring-projects/spring-amqp | 1,488 | defect | 97a508e37917559d9c37ca8961b33330e3f055f3 | 9ec24e448082673b34c69f19e4202c3f844a14ef | AsyncMessageProcessingConsumer countdown when the container is not active | Resolves https://github.com/spring-projects/spring-amqp/issues/1487 | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java
index 201a371dba..d5c9e91d81 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/... | 1 | 1 | 1 | [{"id": "G0", "claim": "A unit test should be added to confirm the problem (the missing countdown when the container is not active) and the fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1492 | spring-projects/spring-amqp | 1,492 | defect | d96aa71ec170ee2665d351d80bba717adb41db42 | 522d4e0ace90ddafe6b8d7e5eec8470fef00b403 | GH-1491: Support Optional/null Payloads | Resolves https://github.com/spring-projects/spring-amqp/issues/1491
**cherry-pick to 2.4.x**
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJackson2MessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/AbstractJackson2MessageConverter.java
index 5c102712d1..14f07da963 100644
--- a/spring-amqp/src/main/java/org/springframework/amq... | 2 | 1 | 0 | [{"id": "G0", "claim": "The test's rabbitConnectionFactory bean should be simplified to `return new CachingConnectionFactory(RabbitAvailableCondition.getBrokerRunning().getConnectionFactory());` instead of manually building a CachingConnectionFactory and copying host/port/user/password from the broker-running support."... | null |
spring-projects__spring-amqp__1500 | spring-projects/spring-amqp | 1,500 | defect | d4e0f5c366a7ffae073f608c3766c82064cab3d1 | 15b04f09741c5252fd9aeb9385266a08d64008cb | GH-1444: Listener Observability Initial Commit | - expand scope to include error handler: https://github.com/spring-projects/spring-amqp/pull/1287
- tracing can't be used with a batch listener (multiple messages in listener call)
| diff --git a/build.gradle b/build.gradle
index a74a9fe319..af1eed0075 100644
--- a/build.gradle
+++ b/build.gradle
@@ -387,6 +387,7 @@ project('spring-rabbit') {
optionalApi "ch.qos.logback:logback-classic:$logbackVersion"
optionalApi 'org.apache.logging.log4j:log4j-core'
optionalApi 'io.micrometer:micrometer-... | 23 | 21 | 4 | [{"id": "G0", "claim": "The observation enums hard-code a generic contextualName while the span name comes from the contextual name, so the plain name is never visible and the naming needs to follow Micrometer's metric-name/span-name design.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in... | null |
spring-projects__spring-amqp__1511 | spring-projects/spring-amqp | 1,511 | defect | 639eb160eed42464ce43d18a99ad1aeb4049310c | caf08ca9a43fffda11c64ca754ce9c8281eb8be1 | GH-1419: Remove RabbitMQ http-client Usage | Resolves https://github.com/spring-projects/spring-amqp/issues/1419
Use Spring WebFlux instead, while allowing the user to choose some other technology in the `LocalizedQueueConnectionFactory`.
**I will backport after review/merge**
| diff --git a/build.gradle b/build.gradle
index e1874a35a6..63e94a5736 100644
--- a/build.gradle
+++ b/build.gradle
@@ -44,7 +44,7 @@ ext {
assertkVersion = '0.24'
awaitilityVersion = '4.2.0'
commonsCompressVersion = '1.20'
- commonsHttpClientVersion = '4.5.13'
+ commonsHttpClientVersion = '5.1.3'
commonsPoolVer... | 4 | 2 | 0 | [{"id": "G0", "claim": "The explicitly declared `optionalApi 'org.springframework:spring-web'` in the spring-rabbit project is unnecessary because spring-web already comes as a transitive dependency of spring-webflux.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
spring-projects__spring-amqp__1516 | spring-projects/spring-amqp | 1,516 | defect | 8b4dd8665b67fb2386b5f786d03d8a5cccfebf54 | d462d0785b8240086b8a58fc42dbf7112d4c0345 | GH-1419: Fix Early Exit in NodeLocator | If a node was returned by the REST call and the node was not in the map of nodes to addreses, the loop exited early.
The incorrect variable was being tested (never null).
Also add a more sophisticated integration test - using 2 brokers, ensure that the correct broker is located for the queue.
**I will back por... | diff --git a/build.gradle b/build.gradle
index 2684b30b7c..e42d3f4964 100644
--- a/build.gradle
+++ b/build.gradle
@@ -67,6 +67,7 @@ ext {
springDataVersion = '2022.0.0-SNAPSHOT'
springVersion = project.hasProperty('springVersion') ? project.springVersion : '6.0.0-SNAPSHOT'
springRetryVersion = '2.0.0-SNAPSHOT'
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "Only the one-line change to `if (nodeUri != null)` in LocalizedQueueConnectionFactory is a back-port candidate, not the rest of the pull request.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__1535 | spring-projects/spring-amqp | 1,535 | defect | d8f78ee29125dc3916c226a73dc1bbe5b8ef5487 | 4eaa0cdca36c9c24187577a0dc99f59b049faebe | Fix Class Tangle | Between `LocalizedQueueConnectionFactory` and `NodeLocator` implementations.
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ConnectionFactoryUtils.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/ConnectionFactoryUtils.java
index 8316518f6b..907f1bc62b 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/conne... | 2 | 1 | 0 | [{"id": "G0", "claim": "The WebFlux constant should be named with a `_PRESENT` suffix per AOT conventions and the extra static block is unnecessary and should be replaced with a direct initializer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
spring-projects__spring-amqp__175 | spring-projects/spring-amqp | 175 | defect | 22f1da9a8587281cb44f5d4dfb6ac33fc65b8ee3 | c0297cb0fc5448bbb0ecb0d25b6f069c1407508d | AMQP-384 Fix Test | JIRA: https://jira.spring.io/browse/AMQP-384
- `TestUtils.getPropertyValue()` (with type) NPE if the
field is null
- When iterating over consumers to answer the consumeOk
ignore consumers that don't have a channel yet
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/utils/test/TestUtils.java b/spring-amqp/src/main/java/org/springframework/amqp/utils/test/TestUtils.java
index b3d5aaf7fb..9836f05844 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/utils/test/TestUtils.java
+++ b/spring-amqp/src/main/java/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The same null-value issue (getPropertyValue calling Assert.isAssignable on a null value) also exists in Spring Integration's copy of this code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
spring-projects__spring-amqp__2457 | spring-projects/spring-amqp | 2,457 | defect | ee681bd01540e1e980c33a2c61eeb7af51ef957a | f9b98e06e57ca31bf750ca1baf68ea6138ca53a8 | GH-2456: Suppress Duplicate Annotations with Spy | Resolves https://github.com/spring-projects/spring-amqp/issues/2456
When spying a `@RabbitListener` bean, duplicate methods are resolved as well as duplicate class level `@RabbitListener` annotations.
**cherry-pick to 2.4.x** (will require instanceof polishing for Java 8)
| diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListenerAnnotationBeanPostProcessor.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListenerAnnotationBeanPostProcessor.java
index 02a76135a7..1a04d214bd 100644
--- a/spring-rabbit/src/main/java... | 1 | 1 | 1 | [{"id": "G0", "claim": "Cherry-picking this change to the 2.4.x branch breaks compatibility with Spring Framework 5.2, because USER_DECLARED_METHODS gains the and() method only in 5.3.2.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-amqp__2537 | spring-projects/spring-amqp | 2,537 | defect | 8e3dd19f63f873a77f96c2060b5c55ca1fbe2d7d | db9696a764627b86e750fceddf714f8c7fc6725c | GH-2536: Exclusive Consumer Logging Improvements | Resolves https://github.com/spring-projects/spring-amqp/issues/2536
Log messages due to access refused due to exclusive consumers at DEBUG level instead of WARN and INFO.
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/ConditionalExceptionLogger.java b/spring-amqp/src/main/java/org/springframework/amqp/support/ConditionalExceptionLogger.java
index f6845d7c87..315e9a2a86 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/ConditionalExceptionLo... | 2 | 2 | 0 | [{"id": "G0", "claim": "The logRestart method should use org.springframework.core.log.LogMessage instead of Supplier<String> so the isDebugEnabled() guard becomes unnecessary.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-exclusive restart ... | null |
spring-projects__spring-amqp__2566 | spring-projects/spring-amqp | 2,566 | defect | 41d786bd965a2acad4423b5d0eab6064caa59516 | 0c4a941171a12331d145b7025fa540472a296bf2 | [WIP] Replace trivial synchronized blocks with reentrant locks | - replace all trivial occurrences of synchronized block by Reentrant locks.
Resolves #2481
| diff --git a/.gitignore b/.gitignore
index 3b3bb7540b..3a4003bf50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ nohup.out
src/ant/.ant-targets-upload-dist.xml
target
.sts4-cache
+.vscode
diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java b/spring-amqp/src/main/j... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer questions whether the pull request really has to change RoutingConnectionFactoryTests as well (converting the anonymous container's synchronized redeclareElementsIfNecessary to a ReentrantLock), suggesting the test modification may be unnecessary.", "category": "maintainability", "v... | null |
spring-projects__spring-amqp__2605 | spring-projects/spring-amqp | 2,605 | defect | cb15cf595e412f82f98c03ab4c42e8cbf61546f1 | 32608ba9fcdb92b1791e21bb75909b6ba74e670b | GH-2601: Add a batchReceiveTimeout | Fixes https://github.com/spring-projects/spring-amqp/issues/2601
stop to waiting next message and execute listener when batchReceiveTimeout is timed out. | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/ListenerContainerFactoryBean.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/ListenerContainerFactoryBean.java
index a23d29ca83..748f088f28 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/c... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new batch gathering timeout must be opt-in with no default batch timeout (default 0) instead of defaulting to 3000 ms, since a non-zero default would be a breaking change in a patch release.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
spring-projects__spring-amqp__2717 | spring-projects/spring-amqp | 2,717 | defect | 1bad8ed99118cfb0aff5d21c94dcf6890a6cec0c | 6bd4d8bb1c689593268a30cf0953abb53c6570cd | GH-2572 Treat ConfirmType.SIMPLE same as ConfirmType.CORRELATED | GH-2572 Do not close channel when `ConfirmType.SIMPLE` is used for publisher confirmations.
See #2571 (discussion) and #2572 (issue) for reference.
<!--
Thanks for contributing to Spring AMQP.
Please provide a brief description of your pull-request and reference any related issue numbers (prefix references w... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index 866116b073..2b5dde6123 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/sp... | 2 | 2 | 1 | [{"id": "G0", "claim": "The isPublisherConfirms close-required condition in RabbitTemplate.invoke should not be removed altogether; it should be kept and improved to also skip the physical close for simple publisher confirms (!isPublisherConfirms() && !isSimplePublisherConfirms()).", "category": "correctness", "verdict... | null |
spring-projects__spring-amqp__2810 | spring-projects/spring-amqp | 2,810 | defect | d7058bbac660741bbd84cd14904683fc65696015 | 3fd10d731c1e84ffe3159942590c90ea47accc8a | MultiRabbitListenerAnnotationBeanPostProcessor resolveMultiRabbitAdminName | issue https://github.com/spring-projects/spring-amqp/issues/2809
Condition in `MultiRabbitListenerAnnotationBeanPostProcessor#resolveMultiRabbitAdminName`
1. Get `RabbitListener#admin` if it's not blank else
2. Get `RabbitListener#containerFactory` return `RabbitListener#containerFactory` + `-admin` if it's not ... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/MultiRabbitListenerAnnotationBeanPostProcessor.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/MultiRabbitListenerAnnotationBeanPostProcessor.java
index 939bd6b583..4f237d2843 100644
--- a/spring-rabbit/src... | 2 | 2 | 1 | [{"id": "G0", "claim": "The multi-RabbitAdmin name should not be resolved by simple SpEL string parsing of the annotation attributes; RabbitListenerContainerFactory should implement BeanNameAware together with a getter so the resolution can go through the actual factory bean, as suggested in issue #2809.", "category": ... | null |
spring-projects__spring-amqp__2816 | spring-projects/spring-amqp | 2,816 | defect | 104a6e1fad6860812e97be17eba83c4e6c164759 | 204b7b17c71170a730bdacc9b056816fbd134340 | Add exchange/routingKey to RabbitMessageSenderContext | I see https://github.com/spring-projects/spring-amqp/issues/2814 and I think `RabbitMessageSenderContext.java` should have field `exchange` and `routingKey`.
But I think it's better if we use `MessageProperties#setReceivedExchange` and `MessageProperties#setReceivedRoutingKey` instead. | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index dc33e807d8..a416169ce7 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/sp... | 4 | 4 | 2 | [{"id": "G0", "claim": "Replacing the (Message, String, String) RabbitMessageSenderContext constructor is a breaking change; the existing constructor should be deprecated and kept (delegating to the new one by splitting the destination on '/'), for backward compatibility with existing callers.", "category": "design", "... | null |
spring-projects__spring-amqp__2833 | spring-projects/spring-amqp | 2,833 | defect | b4339b3c615c748264b1c5188c62028234eba591 | 415a763f73385b0f73fccc8d627e69813b304b4e | RabbitTemplate and RabbitListener add opentelemetry tags | closes #2814
added message.destination.name and message.rabbitmq.destination.routing_key as new tags for RabbitTemplateObservationConvention
added messaging.rabbitmq.message.delivery_tag and message.destination.name to RabbitListenerObservationConvention | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/micrometer/RabbitTemplateObservation.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/micrometer/RabbitTemplateObservation.java
index f3bc17f1e6..67a4990d74 100644
--- a/spring-rabbit/src/main/java/org/springframe... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add the missing `@since 3.2` Javadoc tags to the new EXCHANGE and ROUTING_KEY tag constants in RabbitTemplateObservation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__2859 | spring-projects/spring-amqp | 2,859 | defect | 09b147900dc2cfb837c9b1eb5b5e17882185258d | c2a7261c34018642cc4c35be913da1b1641cc318 | Improve condition for more readability | I read code in package `org.springframework.amqp.core` and I think some codebase conditions are too complex and we can make it simple for readability purpose.
That's why I create draft PR and I wonder whether I can continue to do this, at least in package `org.springframework.amqp.core`. Please let me know your thou... | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java b/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java
index 678620e914..c87fb03aa1 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/AbstractDeclarable.java
+++ b/spring-amqp/src/m... | 1 | 1 | 1 | [{"id": "G0", "claim": "The rewrite of setAdminsThatShouldDeclare reassigns this.declaringAdmins in place, breaking the property's atomicity so a ConcurrentModificationException may end up happening, and the logic is needlessly complex; the declaringAdmins property must be final and the method should be as simple as as... | null |
spring-projects__spring-amqp__2932 | spring-projects/spring-amqp | 2,932 | defect | d139c981c24cf94f1baa1f50a4ad7958873fab1c | 7017e21ab023bfd9815b62f7a8f01f6ffe724b4b | GH-2478 Handle conversion exception in AsyncRabbitTemplate | Previously, conversion errors in AsyncRabbitTemplate lead to AmqpReplyTimeoutException
Fixes https://github.com/spring-projects/spring-amqp/issues/2478
https://github.com/spring-projects/spring-amqp/issues/2478#issuecomment-2543745530 | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java
index 5bc5f44c89..994620c020 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/AsyncRabbitTemplate.java
+++ b/sp... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request does not compile: the new catch block in AsyncRabbitTemplate.java references MessageConversionException without importing it, so please run ./gradlew check locally before pushing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id... | null |
spring-projects__spring-amqp__3006 | spring-projects/spring-amqp | 3,006 | defect | 355be1ee4c20dd1179c6eed59bb43fac5d18db6b | b85d809c3822d62794a8be6443bba57f5dde63c4 | Read x-death count in a safer way | We had an issue in our system trying to consume a message from RabbitMQ that contained an `x-death` header, with `count` value typed as Integer. This caused a ClassCastException in https://github.com/spring-projects/spring-amqp/blob/355be1ee4c20dd1179c6eed59bb43fac5d18db6b/spring-rabbit/src/main/java/org/springframewor... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/DefaultMessagePropertiesConverter.java
index 0d9e3cfd58..0a2855ce32 100644
--- a/spring-rabbit/src/main/java/org/springframework/a... | 2 | 2 | 1 | [{"id": "G0", "claim": "The build fails with Checkstyle violations in DefaultMessagePropertiesConverter (NumberUtils import out of order, 'if' not followed by whitespace), so they must be fixed and `gradlew check` run locally before pushing.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "int... | null |
spring-projects__spring-amqp__3116 | spring-projects/spring-amqp | 3,116 | defect | b7f95cfb95da30c65c4b27a5e6d51058d8bb34b4 | 4ff67251c1fcce01229d02bdbe5fa30679a1f5ec | Add observationConvention Setter for RabbitStreamTemplate | <!--
Thanks for contributing to Spring AMQP.
Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #).
See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-amqp/blob/main/CONTRIBUTING.adoc).
-->
Closes ... | diff --git a/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/RabbitStreamTemplate.java b/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/RabbitStreamTemplate.java
index 1b994683a2..b69a421240 100644
--- a/spring-rabbit-stream/src/main/java/org/springframework/... | 2 | 2 | 1 | [{"id": "G0", "claim": "The setter's javadoc wrongly says the custom convention is only for adding key/values; it should read \"Set a custom {@link RabbitStreamTemplateObservationConvention}.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @s... | null |
spring-projects__spring-amqp__3281 | spring-projects/spring-amqp | 3,281 | defect | cdd11121c6b41297474cb792d3a725a581a56aae | 5dfda83ab6096fb9a2bfac96a74791bdbac04c81 | Add `AmqpMessageListenerContainer` for AMQP 1.0 | * Implement the container a similar way to the `RabbitAmqpListenerContainer`
* Use some reflection for calling internal ProtonJ API
* Therefore, expose `AmqpRuntimeHints` for AOT
* Add useful `setReceivedRoutingKey(message.to())` mapping into the `ProtonUtils.fromProtonMessage()`
* Guard client exceptions parsing a... | diff --git a/spring-amqp-client/src/main/java/org/springframework/amqp/client/ProtonUtils.java b/spring-amqp-client/src/main/java/org/springframework/amqp/client/ProtonUtils.java
index a9d59b69f..cdc3ad154 100644
--- a/spring-amqp-client/src/main/java/org/springframework/amqp/client/ProtonUtils.java
+++ b/spring-amqp-c... | 10 | 8 | 1 | [{"id": "G0", "claim": "The new `aot` package javadoc should describe AOT support for Spring AMQP (e.g. \"Spring AMQP Client AOT\") instead of \"Provides classes to support Spring AOT\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reference... | null |
spring-projects__spring-amqp__3287 | spring-projects/spring-amqp | 3,287 | defect | f5737580c03d0c552da7361ebfd0631c73d10a3f | 51925e39e0785c1bd6377b3e548fe700919a4825 | Add `ProtonDeliveryListener` into `spring-amqp-client` | Sometimes target projects would like to deal with native ProtonJ API but still rely on the Spring flexibility with listener container infrastructure.
* Add `ProtonDeliveryListener` to handle `Delivery` directly
* Test and document the feature
* Fix copy/paste artifact in the `whats-new.adoc`
<!--
Thanks for co... | diff --git a/spring-amqp-client/src/main/java/org/springframework/amqp/client/listener/AmqpMessageListenerContainer.java b/spring-amqp-client/src/main/java/org/springframework/amqp/client/listener/AmqpMessageListenerContainer.java
index 7f7937d83..ed53f0307 100644
--- a/spring-amqp-client/src/main/java/org/springframew... | 5 | 4 | 0 | [{"id": "G0", "claim": "The docs should drop the article 'a' in 'handle a native ProtonJ `Delivery` objects' since the sentence deals with plural objects.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs should use 'replenish' instead of 'r... | null |
spring-projects__spring-amqp__3288 | spring-projects/spring-amqp | 3,288 | defect | f5737580c03d0c552da7361ebfd0631c73d10a3f | 5fc395152d88447dd7b9f9185829c9a1977c67a8 | Introduce `@EnableAmqp` | * Import an `AmqpDefaultConfiguration` from the `@EnableAmqp` with convenient infrastructure beans
* Make a default `Client` bean based on the `ClientOptions` built from the `@EnableAmqp` attributes
* Mark `AmqpDefaultConfiguration.protonClient()` bean as `@Conditional` and skip its registration when any `Client` bea... | diff --git a/spring-amqp-client/src/main/java/org/springframework/amqp/client/SingleAmqpConnectionFactory.java b/spring-amqp-client/src/main/java/org/springframework/amqp/client/SingleAmqpConnectionFactory.java
index ca6a13d11..f53dc64df 100644
--- a/spring-amqp-client/src/main/java/org/springframework/amqp/client/Sing... | 6 | 5 | 2 | [{"id": "G0", "claim": "The doc sentence \"One of the `@Configuration` classes\" should be replaced with \"A single `@Configuration` class in the target\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc bullet should be reworded to say the... | null |
spring-projects__spring-amqp__3330 | spring-projects/spring-amqp | 3,330 | defect | ac7c443f8c44dead41d8c21325c0fb7e1b43693a | 8ee6c7ac8175bb99ca4884bc7e3c6c6b722e427e | Introduce `AmqpListenerEndpoint` infrastructure | * Add `AmqpListenerEndpoint` abstraction to connect `MessageListener` with `AmqpMessageListenerContainer` at runtime
* Provide `SimpleAmqpListenerEndpoint` implementation for programmatic registration
* Add `AmqpMessageListenerContainerFactory` for creating `AmqpMessageListenerContainer` at runtime
* The `AmqpListen... | diff --git a/spring-amqp-client/src/main/java/org/springframework/amqp/client/config/AbstractAmqpListenerEndpoint.java b/spring-amqp-client/src/main/java/org/springframework/amqp/client/config/AbstractAmqpListenerEndpoint.java
new file mode 100644
index 000000000..33a02f1d0
--- /dev/null
+++ b/spring-amqp-client/src/ma... | 8 | 5 | 0 | [{"id": "G0", "claim": "The javadoc for setGracefulShutdownPeriod misspells 'shutdown' as 'shoutdown' and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The public methods of AmqpListenerEndpointRegistry should have javadocs."... | null |
spring-projects__spring-amqp__3364 | spring-projects/spring-amqp | 3,364 | defect | ef6f3cbfe7011d75feb107a7b2b21a4dda4eee66 | f8ea99b38bee65c4048f34b72b40947c171d9f3e | Document `@AmqpListener` | * Fix `MethodAmqpListenerEndpoint` for a proper `.listenerContainer` suffix. We really register an `AmqpMessageListenerContainer` instance
<!--
Thanks for contributing to Spring AMQP.
Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #).
See ... | diff --git a/spring-amqp-client/src/main/java/org/springframework/amqp/client/config/MethodAmqpListenerEndpoint.java b/spring-amqp-client/src/main/java/org/springframework/amqp/client/config/MethodAmqpListenerEndpoint.java
index 027ffd77c..715fc1b63 100644
--- a/spring-amqp-client/src/main/java/org/springframework/amqp... | 5 | 5 | 0 | [{"id": "G0", "claim": "The bullet describing `AmqpListenerAnnotationBeanPostProcessor` says \"register listener containers with via the `AmqpListenerEndpointRegistry`\" and should say \"containers via\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
spring-projects__spring-amqp__3407 | spring-projects/spring-amqp | 3,407 | defect | 36b76b734b00b4c8d76a7f6bb774e905ecb8a54d | e6c5889ed2f7dd762f13c2847fe9ead2eeaa1e07 | GH-2305: Add immediate scale-down to SimpleMessageListenerContainer | Fixes https://github.com/spring-projects/spring-amqp/issues/2305
When `setConcurrentConsumers()` is invoked dynamically (for example, from within a listener) to scale down, the current implementation arbitrarily cancels a consumer via `adjustConsumers()`, which may kill a consumer that is still actively processing a... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/SimpleRabbitListenerContainerFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/SimpleRabbitListenerContainerFactory.java
index e4a8b06db..77ac40fc9 100644
--- a/spring-rabbit/src/main/java/org/springframework... | 12 | 12 | 1 | [{"id": "G0", "claim": "The isDebugEnabled() guard is unnecessary when the log message is a string constant and should be dropped.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new isImmediateScaleDown() getter is unneeded access to an internal... | null |
spring-projects__spring-amqp__720 | spring-projects/spring-amqp | 720 | defect | f649d118a3f158fa1267495edbb417091de42760 | bfbc1ee62fe1e3b103d1aa6c2840a5892c7a9eef | GH-719: Container Factory: Add replyPostProcessor | Resolves https://github.com/spring-projects/spring-amqp/issues/719
Add `replyPostProcessor` to the container factory. | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java
index 81f3d71fbf..5c5f576fee 100644
--- a/spring-rabbit/src/main/java/org/springfra... | 3 | 3 | 0 | [{"id": "G0", "claim": "The deprecated setReplyPostProcessor should delegate to setBeforeSendReplyPostProcessors(replyPostProcessor) instead of assigning the array field directly, for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
spring-projects__spring-amqp__792 | spring-projects/spring-amqp | 792 | defect | bdc75e41c99f4a983636e4b2392c35dc11a9e592 | 4485962e50d797dff991e8b8ef66d87d79a869e7 | AMQP-825: Add Reply RetryTemplate | JIRA: https://jira.spring.io/browse/AMQP-825
__cherry-pick to 2.0.x__ | diff --git a/build.gradle b/build.gradle
index 3acb369497..bdbd12fec6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -235,6 +235,8 @@ project('spring-amqp') {
compile ("org.springframework:spring-messaging:$springVersion", optional)
compile ("org.springframework:spring-oxm:$springVersion", optional)
compile (... | 4 | 4 | 2 | [{"id": "G0", "claim": "SendRetryContextAccessor should not require end-users to instantiate an extra object with setters; make it a simple static type-safe utility instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a @see AbstractAdaptableMessa... | null |
spring-projects__spring-amqp__793 | spring-projects/spring-amqp | 793 | defect | d4c8377220d4a4817d9e1ec9398bdd4be4036909 | fe444571786d390498bb27d9f1f060da1103deaa | AMQP-828: AutoRecovery with template.receive() | JIRA: https://jira.spring.io/browse/AMQP-828
Close auto-recoving channels during recovery since the consumer is
no longer there.
This was previously fixed for the `BlockingQueueConsumer`, but not for
`template.receive()` operations. | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java
index 4aefe6c16d..99b86dcbab 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/c... | 5 | 3 | 0 | [{"id": "G0", "claim": "Removing `implements RecoveryListener` from BlockingQueueConsumer is a breaking change for back-porting, since someone could extract it from the container and cast it to RecoveryListener.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
spring-projects__spring-amqp__795 | spring-projects/spring-amqp | 795 | defect | 6b94b1f69f64e564e2c2ab334811b81b04648802 | 99ad35ef512b825ffb037a7391956baad36e61f5 | AMQP-829: RabbitTemplate Req/Resp Fail Fast | JIRA: https://jira.spring.io/browse/AMQP-829
If the channel closes while we are waiting for a reply, throw an
exception instead of waiting to time out. | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index a5b4ac71b4..470126f210 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/sp... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test should shut down the single-thread executor it creates at the end of testShutdownWhileWaitingForReply, because an un-referenced newSingleThreadExecutor keeps a non-daemon thread alive and hangs around during the rest of the test suite.", "category": "correctness", "verdict": "supported"... | null |
spring-projects__spring-amqp__843 | spring-projects/spring-amqp | 843 | defect | dcce0362d8775870fd566cc2de14cf174915150c | 0f4c15efa04378918d6b91226c3bbde1c0e6a93b | GH-841: Close executor in the PublisherConChannel | Fixes https://github.com/spring-projects/spring-amqp/issues/841
**cherry-pick to 2.0.x** | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/PublisherCallbackChannelImpl.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/PublisherCallbackChannelImpl.java
index ba48e36a85..da5e845b10 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/... | 4 | 4 | 1 | [{"id": "G0", "claim": "Use mapToInt() directly in getPendingConfirmsCount() instead of the two-step .map(Map::size).mapToInt(Integer::valueOf).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The indentation of the this.executor.shutdown() call insi... | null |
spring-projects__spring-amqp__870 | spring-projects/spring-amqp | 870 | defect | 3caa3c97d57f414d0df6aacfd2b861626309a80e | b8587ae5fd6b1bfc8a0e36c4099d2a080d51ec6b | AMQP-849: RT and DRTMLC - add ErrorHandler | JIRA: https://jira.spring.io/browse/AMQP-849
Support the configuration of an error handler for exceptions when
delivering replies (e.g. late replies).
**cherry-pick to 2.0.x with adjustments to assertJ and docs** | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index db403fb2de..974c4d8efa 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/sp... | 3 | 3 | 0 | [{"id": "G0", "claim": "The redundant error log above the new AmqpRejectAndDontRequeueException should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ErrorHandler feature should also be mentioned in the main reference doc, no... | null |
spring-projects__spring-amqp__894 | spring-projects/spring-amqp | 894 | defect | 454e30e1b871d16963488b8142428b6f2abe807c | 8111c74e4972bd609ebda16504dda8b291f75ef6 | Allow messagesPerAck and ackTimeout to be configurable when using DirectRabbitListenerContainerFactory | This capability is being added primarily to support configuration of these values when using Spring Boot application.properties/yml.When using code based configuration an alternate method is to use the setContainerConfigurer callback.
Resolves #893 | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/DirectRabbitListenerContainerFactory.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/DirectRabbitListenerContainerFactory.java
index d9a2ae89a5..e579aa3d1f 100644
--- a/spring-rabbit/src/main/java/org/springframewo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add the author's name to the @author list and update the Copyright year to the current year for all affected classes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__895 | spring-projects/spring-amqp | 895 | defect | 6fb2187b0d00c58db57c83c7dfb17e65c3a2e354 | fae151de5a4116df1e66c0ba3c7884b0218fd306 | Introducing addBeforePublishPostProcessors method to the RabbitTemplate | Sometimes we need a way to append our `BeforePublishPostProcessors` to the list ([that might be manipulated by libraries](https://github.com/openzipkin/brave/blob/master/instrumentation/spring-rabbit/src/main/java/brave/spring/rabbit/SpringRabbitTracing.java#L106)).
By calling `setBeforePublishPostProcessors`, it over... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
index dae66dc3c9..189e91fab8 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
+++ b/sp... | 7 | 7 | 2 | [{"id": "G0", "claim": "Since the new API lets users add before-publish post processors at runtime, there should also be remove methods to take them out again, object-based and index-based like ChannelInterceptorAware.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
spring-projects__spring-amqp__919 | spring-projects/spring-amqp | 919 | defect | 0123d3a4beca22699425d522befe4035897866f5 | 2eeacb9221c739919f6e5f3998f85c8783a25713 | GH-918 Handle null correlationId | <!--
Thanks for contributing to Spring AMQP. Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #).
See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-amqp/blob/master/CONTRIBUTING.adoc).
-->
Related ... | diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java b/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java
index a1cf1b2a58..3814f5e18b 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/MessageProperties.java
+++ b/spring-amqp/src/main... | 2 | 2 | 1 | [{"id": "G0", "claim": "Please add a simple test-case covering the null-correlationId hashCode change, since a prior test would have caught the NPE.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please add your name to the @author list (of MessagePrope... | null |
spring-projects__spring-amqp__964 | spring-projects/spring-amqp | 964 | defect | 1614a4b0532b83e29b2a2fdb8dac102576b8aa51 | 17a877913313ad9d3844997cd7d2cf3f2913de65 | Add type-safe queue properties to AmqpAdmin | Retain (don't deprecate) the current method for JMX users.
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/core/AmqpAdmin.java b/spring-amqp/src/main/java/org/springframework/amqp/core/AmqpAdmin.java
index 06691be1df..62d8566d34 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/core/AmqpAdmin.java
+++ b/spring-amqp/src/main/java/org/springframewor... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new QueueInformation class should declare @since 2.2 rather than the @since 2.1 the PR added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-amqp__971 | spring-projects/spring-amqp | 971 | defect | ae7b6ac929f02e5e56e246f5f971707d52799c4a | 3978e523ab49e2cbc2247ab1b97763a98d68b76c | GH-970: Add `AmqpAppender.verifyHostname` option | Fixes https://github.com/spring-projects/spring-amqp/issues/970
* Some code polishing and internal refactoring for `AmqpAppender`
**Cherry-pick to 2.1.x**
<!--
Thanks for contributing to Spring AMQP. Please provide a brief description of your pull-request and reference any related issue numbers (prefix refere... | diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java
index d86824ce73..9787280eba 100644
--- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java
+++ b... | 3 | 2 | 2 | [{"id": "G0", "claim": "The regex passed to replaceAll for the applicationId property looks wrong because curly brackets must be escaped in RegEx, and there appears to be no test covering it.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new veri... | null |
spring-projects__spring-amqp__980 | spring-projects/spring-amqp | 980 | defect | e3d37e86cdb51aae3704cff4f132c20ed4e14df0 | 4cb28eb88efbf586dd02ae3d705b22813115e4b2 | GH-922: Add Batch-mode @RabbitListener | Resolves https://github.com/spring-projects/spring-amqp/issues/922
- remove unnecessary back-ticks from literal table columns
| diff --git a/spring-amqp/src/main/java/org/springframework/amqp/support/converter/MessagingMessageConverter.java b/spring-amqp/src/main/java/org/springframework/amqp/support/converter/MessagingMessageConverter.java
index f32f85ddea..20ccb4cb3d 100644
--- a/spring-amqp/src/main/java/org/springframework/amqp/support/conv... | 4 | 2 | 0 | [{"id": "G0", "claim": "The factory-setting and endpoint-setting acceptIfNotNull calls in createListenerContainer can be combined into a single javaUtils chain instead of two chains.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The @SuppressWarnings(\"... | null |
spring-projects__spring-amqp__991 | spring-projects/spring-amqp | 991 | defect | 1e1fa6ae8c4b63a495c9e9f60060d926e69c25cc | 110290144b7097a001810241f9f14dbee8ac0331 | Add Spring Data projection support | Add support for converting JSON message bodies to Spring Data Projection interfaces.
This allows very selective, and low-coupled bindings to data, including
the lookup of values from multiple places inside the JSON document.
For example the following interface can be defined as a message payload type:
```
interf... | diff --git a/build.gradle b/build.gradle
index bbb12e0168..9ed9c10a11 100644
--- a/build.gradle
+++ b/build.gradle
@@ -79,6 +79,7 @@ subprojects { subproject ->
googleJsr305Version = '3.0.2'
hamcrestVersion = '1.3'
jackson2Version = '2.9.8'
+ jaywayJsonPathVersion = '2.4.0'
junit4Version = '4.12'
junitJ... | 6 | 6 | 1 | [{"id": "G0", "claim": "setUseProjectionForInterfaces() should proactively reject the configuration when spring-data-commons is not on the classpath, and the ProjectingMessageConverter should be created directly in that setter rather than lazily in fromMessage.", "category": "correctness", "verdict": "supported", "prio... | null |
spring-projects__spring-authorization-server__140 | spring-projects/spring-authorization-server | 140 | defect | 18f8b3afaae3103bbc1ff71afb1a0a6e2808dd0a | 62d623b9118ba9eb45ed06bcf27afa71942d1410 | Add client secret POST authentication method support | Added support for client secret POST authentication method.
Added validation of client authentication method when
authenticating a client.
Closes gh-134 | diff --git a/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientAuthenticationProvider.java b/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientAuthenticationProvider.ja... | 5 | 5 | 2 | [{"id": "G0", "claim": "Remove `@Nullable` from the new `clientAuthenticationMethod` constructor parameter of OAuth2ClientAuthenticationToken so the authentication method is required.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the now-redundan... | null |
spring-projects__spring-authorization-server__304 | spring-projects/spring-authorization-server | 304 | defect | f3cb8f758ca999e2625526939af81ac18317187b | d18a5dd306b41bd47096d49d881825e2668e3a32 | Provide JDBC implementation of OAuth2AuthorizationService | Add new JDBC implementation of the OAuth2AuthorizationService
Closes gh-245 | diff --git a/gradle/dependency-management.gradle b/gradle/dependency-management.gradle
index 003c3b7c5f..560f530077 100644
--- a/gradle/dependency-management.gradle
+++ b/gradle/dependency-management.gradle
@@ -32,5 +32,6 @@ dependencyManagement {
dependency "com.squareup.okhttp3:mockwebserver:3.14.9"
dependency ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Comparing Instant objects with .equals() causes build errors on windows-latest JDK 11/12, so the tests should compare within a range of a few milliseconds instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "principal_name... | null |
spring-projects__spring-authorization-server__490 | spring-projects/spring-authorization-server | 490 | defect | 5982d2285cd94b8450e58256abd0ab03b2461943 | a3038f6ffddff1313c51fa90bd98f64d72a565a2 | Allow Token Revocation to be customized | Provides `tokenRevocationEndpoint(Customizer)` hook to add `tokenRevocationSuccessHandler()` and `tokenRevocationFailureHandler`
Fixes: #476 | diff --git a/oauth2-authorization-server/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/authorization/OAuth2AuthorizationServerConfigurer.java b/oauth2-authorization-server/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/authorizatio... | 14 | 14 | 5 | [{"id": "G0", "claim": "The token revocation endpoint should also allow a custom AuthenticationConverter to be configured, e.g. to support custom parameters.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The token revocation endpoint should also allow a... | null |
spring-projects__spring-authorization-server__71 | spring-projects/spring-authorization-server | 71 | defect | 4b8fb4e04ef0d15dedd9ba7fe9735c9c89639bc8 | fd37d5ace2b4d8fe49f063b7ef90136c327f78bf | Add in-memory implementation for OAuth2AuthorizationService | Fixes gh-43
<s>Haven't provided unit tests yet,</s> I am unsure about a few things, see comments. | diff --git a/core/src/main/java/org/springframework/security/oauth2/server/authorization/InMemoryOAuth2AuthorizationService.java b/core/src/main/java/org/springframework/security/oauth2/server/authorization/InMemoryOAuth2AuthorizationService.java
new file mode 100644
index 0000000000..53de67b041
--- /dev/null
+++ b/cor... | 7 | 7 | 3 | [{"id": "G0", "claim": "Deriving the token type inside OAuth2Authorization (verifying at instantiation that either an OAuth2AccessToken or an authorization_code attribute is set) feels clunky, and the author proposes instead an OAuth2Authorization interface with getToken()/getTokenType() and two implementations, pendin... | null |
spring-projects__spring-batch__236 | spring-projects/spring-batch | 236 | defect | 35332a4757e892aeb38aa8f118fc03dbf2fe3de7 | 73458498160d7b24bcc701a3e0ab0977d19003ff | General cleanup etc around properties and substitution | - Move pre-context init of JobParameters support out of ThreadLocalClassloaderBeanPostProcessor
- General cleanup in BatchPropertyBeanPostProcessor, move artifact type checking into classifer class, minor naming updates
- Refactor BatchPropertyContext to use different data structures for different types of properties a... | diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobContext.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobContext.java
index e1e016a6000..dcd63eb6702 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobContext.java
+++ b/spring... | 5 | 4 | 0 | [{"id": "G0", "claim": "Use an Enum for the list of JSR-352 artifact types, since the list isn't going to change anytime soon.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Name the class something other than \"Classifier\", since there is a Classifier ... | null |
spring-projects__spring-batch__237 | spring-projects/spring-batch | 237 | defect | 34f9fa73416759dd4e7d03e3b3010109322b8a95 | 178f1f31b774045c5a2d2327d766941dca4d4a5d | BATCH-2095: Change JSR version of Split to execute flows in separate threads. | - If a bean by the name of jsr352splitTaskExecutor is configured, use it as the TaskExecutor otherwise use a default of SimpleAsyncTaskExecutor
- There seems to be some difference between hsqldb 1.8.0.10 and 2.0+ that I have not gotten to the root cause of (we use 2.2.9 in SB) when running the TCK. Locally I'm using 1.... | diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/SplitParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/SplitParser.java
index b8f1e0d35e2..3370a2d6f26 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch... | 1 | 1 | 1 | [{"id": "G0", "claim": "The parser should not fall back to any bean named 'taskExecutor'; it should use only the specific jsr352splitTaskExecutor bean name and let users override that.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spring-projects__spring-batch__252 | spring-projects/spring-batch | 252 | defect | 8bee7ac310039b404cac0fc05ee656b0150c1c22 | 78cf001e9e03e4e0cc6444a9d2ccb1689c2e033b | Refactored the JsrJobOperator to start and restart jobs asynchronously | by default.
- Refactored the JsrJobOperator to use SimpleAsyncTaskExecutor by
default
- Introduced a JobContextFactory to provide a JobContext per thread.
- Updated stop logic to correctly handle stopping jobs running on
another thread.
| diff --git a/dictionary.txt b/dictionary.txt
index 63e4bda797..2b131be9ff 100644
--- a/dictionary.txt
+++ b/dictionary.txt
@@ -99,3 +99,5 @@ accessors
subclassing
ajax
javascript
+chris
+schaefer
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobContext.java b/spring-batch-core/src/m... | 8 | 4 | 3 | [{"id": "G0", "claim": "JobContextFactoryBean.close(), which removes the JobContext ThreadLocal, is only ever called from a test, so the thread local is not explicitly removed when a job run finishes and it should be called in normal processing.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
spring-projects__spring-batch__255 | spring-projects/spring-batch | 255 | defect | d8b435e211f4fbd8944e32eddcc05fabb42e2721 | 63415b7cef15a710f6869dc4fe7599b750bb7fa3 | Pre-process JSR job XML for property replacement | Remove property resolution through the original bean factory post processor and move resolution to
occur during XML pre-processing. JSR-352 allows for property replacement and expressions to be present
on any element and the preprocessing provides the ability to load a well formed XML document into the
context with the... | diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/JobParameterResolvingBeanFactoryPostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/JobParameterResolvingBeanFactoryPostProcessor.java
deleted file mode 100644
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The newly added protected methods of JsrBeanDefinitionDocumentReader (initProperties, initJobParameters, initJobProperties) should not be something people can override.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The logging in... | null |
spring-projects__spring-batch__3697 | spring-projects/spring-batch | 3,697 | defect | cafd35c95f8e776809e07b857ed5a45a88e0b91c | cd40780c55f7237b2f153720acdcfdb841b24890 | Meta-annotate @SpringBatchTest with @ExtendWith(SpringExtension.class) | This PR meta-annotates `@SpringBatchTest` with `@ExtendWith(SpringExtension.class)` so it can be used in a JUnit Jupiter test without having to extend the test class with `SpringExtension`.
Issue #3647 | diff --git a/build.gradle b/build.gradle
index 81764dfd96..0ba9b7a81a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -85,6 +85,7 @@ allprojects {
jettisonVersion = '1.2' //? => upgrade to 1.4 and the build fails (deprecated anyway via xstream)
jmsVersion = '2.0.1'
junitVersion = '4.13'
+ junitJupiterVersion ... | 3 | 2 | 0 | [{"id": "G0", "claim": "Reword the JUnit 5 JavaDoc paragraph in SpringBatchTest.java for the sake of clarity, as given in the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the explicit `classes = ...JobConfiguration.class` ... | null |
spring-projects__spring-batch__566 | spring-projects/spring-batch | 566 | defect | 020d0519ace886df3a5a97c16bf3b62b3e8ad67a | f02823ab2888eb2fbcc12afdbceb96b579169a1a | BATCH-2667: update warning message to be more explicit | Before this commit, when a job execution is stopped from a different
JVM than the one running the job, a warning says that the job cannot
be found. This was confusing to some users since the job can be found
in the database (but is actually not defined in the job registry of
the application context of the second JV... | diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobOperator.java b/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobOperator.java
index f892f93bd45..33c6c1d00dd 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The warning message should be even more detailed, something like \"Cannot find Job object in the job registry. StoppableTasklet#stop() will not be called\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-batch__593 | spring-projects/spring-batch | 593 | defect | 502cd9b4e516ddce03bad59e636bd4d3f1fdc2b2 | 68edcf2f8336e11ff54761bb2658d4d403ce2b30 | BATCH-2624: Chunk oriented step builders must validate that an ItemWriter is provided | This PR rebases #491 on the master branch and adds a test on the mandatory item writer.
I took the opportunity to also add a test on the mandatory item reader. | diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java
index cfe440fa059..8066943aeff 100644
--- a/spring-batch-core/src/main/java/org/springframewo... | 2 | 2 | 0 | [{"id": "G0", "claim": "The copyright header of SimpleStepBuilder.java should say 2018 instead of 2017.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added tests should drop the empty parentheses on @Test() since no attributes are used.... | null |
spring-projects__spring-batch__617 | spring-projects/spring-batch | 617 | defect | 547533fab072289c062916e51c589de36ea3dfe2 | 941d82443cdd6fdc182341b07459dfd791ddb67e | Add a validator implementation based on the Bean Validation API | This PR resolves [BATCH-2690](https://jira.spring.io/browse/BATCH-2690). | diff --git a/build.gradle b/build.gradle
index da1e27cd163..0531b7cf852 100644
--- a/build.gradle
+++ b/build.gradle
@@ -72,6 +72,7 @@ allprojects {
h2databaseVersion = '1.4.196'
hibernateVersion = '5.2.12.Final'
hibernateValidatorVersion = '6.0.4.Final'
+ javaxElVersion = '3.0.0'
hsqldbVersion = '2.4.0'
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The constructor should not call afterPropertiesSet() on the injected LocalValidatorFactoryBean, since that is the container's responsibility for a bean it manages.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The springVali... | null |
spring-projects__spring-data-couchbase__1051 | spring-projects/spring-data-couchbase | 1,051 | defect | ad5551625dcc12a3f8afb24bbd2a5f3b09cdd377 | cf820ce05abb96fb930d0f943ceeb332d103537e | DATACOUCH-1041 - Add withCas() method to RemoveById. |
Add withCas() method to RemoveById as the cas in the entity cannot be used as the entity is not pass in the API. The other option was to add methods like one(T entity) and all(Collection<T>), but those class with one(String id) and all(Collection<String> ids).
- [x] You have read the [Spring Data contribution gui... | diff --git a/src/main/java/org/springframework/data/couchbase/core/ExecutableRemoveByIdOperation.java b/src/main/java/org/springframework/data/couchbase/core/ExecutableRemoveByIdOperation.java
index a53a244ba..6918bdf3f 100644
--- a/src/main/java/org/springframework/data/couchbase/core/ExecutableRemoveByIdOperation.jav... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new CAS parameter should be a primitive `long` (checked with `!= 0` rather than a null test) instead of a boxed `Long`, to get rid of the boxing for less GC.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spring-projects__spring-data-couchbase__1132 | spring-projects/spring-data-couchbase | 1,132 | defect | 29766bfbff6825a550e9012edb8b9942d2265b46 | 869c0ab5c323815f0f638395a5d6df6495bf3b26 | Expose ObjectMapper used by JsonSerializer | Expose ObjectMapper used by JsonSerializer
Closes #1130.
- [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
- [x] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATACO... | diff --git a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java b/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java
index 32cf783c2..5725cd979 100644
--- a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfigur... | 2 | 1 | 0 | [{"id": "G0", "claim": "Failing bean construction with a CouchbaseException when non-shadowed Jackson is not present seems unnecessary — consider adding the custom serializer only if present, or logging a warning instead of blowing up.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduc... | null |
spring-projects__spring-data-couchbase__1135 | spring-projects/spring-data-couchbase | 1,135 | defect | 29766bfbff6825a550e9012edb8b9942d2265b46 | f1fb77adf07cc7e1e5599ffeeb37addf761e588f | Add override of toN1qlRemoveString() to StringQuery. | Closes #1131.
- [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
- [x] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATACOUCH).
- [x] You use the code formatters provi... | diff --git a/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByQueryOperationSupport.java b/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByQueryOperationSupport.java
index 3a76a2817..262234760 100644
--- a/src/main/java/org/springframework/data/couchbase/core/ReactiveRemoveByQ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added null check 'if (options == null)' does not make sense because the line above always assigns a non-null QueryOptions to options.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In StringQuery, the new toN1qlRemoveStri... | null |
spring-projects__spring-data-couchbase__1148 | spring-projects/spring-data-couchbase | 1,148 | defect | d172f395a8214fec264604b37f7820c39feb9d2f | 8be47bfe366a0f500889db2fba8d8d60c62c65c3 | Improve framework for custom mapping couchbase converter. | 1) change examples in Config to show creating repository mappings using
existing MappingCouchbaseConverter (which have customConversions /
BeanNames.COUCHBASE_CUSTOM_CONVERSIONS and applicationContext)
instead of creating their own and then adding the customConversion and
applicationContext.
2) remove unused mem... | diff --git a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java b/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java
index eee0a6de8..225a98d0d 100644
--- a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfigur... | 3 | 3 | 1 | [{"id": "G0", "claim": "A descriptive exception should be thrown when the mappingContext passed to the MappingCouchbaseConverter constructor is not an instance of CouchbaseMappingContext, instead of the cast failing opaquely.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
spring-projects__spring-data-couchbase__1167 | spring-projects/spring-data-couchbase | 1,167 | defect | 3e51707b61dea924d7757fe88f0abea0e2cc1c3b | abbc1e0f4610120ebf92d8ed9af59ea2a79f61b4 | To support jdk 16, add converters and module-info. | target 9 is necessary to support module info. module info is necessary to specify the various requires/opens/exports.
Converters for BigInteger and UUID have been added in OtherConverters.
The constructor for MappingCouchbaseConverter has been modified to (1) include the CouchbaseCustomConverters; and (2) specify ... | diff --git a/src/main/java/org/springframework/data/couchbase/core/CouchbaseTemplateSupport.java b/src/main/java/org/springframework/data/couchbase/core/CouchbaseTemplateSupport.java
index bf794b9ca..4d2eaa423 100644
--- a/src/main/java/org/springframework/data/couchbase/core/CouchbaseTemplateSupport.java
+++ b/src/mai... | 4 | 3 | 2 | [{"id": "G0", "claim": "The PR cannot include the compiler source/target 9 setting (Java 9 bytecode would break the required Java 8/Spring Boot compatibility) nor the module-info.java module descriptor, since Spring projects do not plan to add module descriptors.", "category": "design", "verdict": "supported", "priorit... | null |
spring-projects__spring-data-couchbase__1279 | spring-projects/spring-data-couchbase | 1,279 | defect | 9f2d7ee6b597111c15904fe1cd1292c24b595596 | 15ff22fd8162e3520b82ba5d33ed1e8cec7d1e70 | Port to jdk17 and spring 3.0.0 | Closes #1278.
- [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
- [x] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATACOUCH).
- [x] You use the code formatters provi... | diff --git a/pom.xml b/pom.xml
index 6b51b5d29..bc08426a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM... | 4 | 3 | 2 | [{"id": "G0", "claim": "The maven-jar-plugin block setting Automatic-Module-Name is already configured by the Spring Data Build parent pom, so it should be removed from this pom.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "PersistentEntities ... | null |
spring-projects__spring-data-couchbase__1513 | spring-projects/spring-data-couchbase | 1,513 | defect | 4974e0075ff6ec90092f758fd310e3053ccea4ff | 998c3ee4bdb89ba994bcc27740a8fbffbf633870 | Update transactions documentation for native transaction support. | Closes #1454.
Staged documentation is available at : https://mikereiche.github.io/staged/transactions.html
- [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
- [x] There is a ticket in the bug tracker for the project ... | diff --git a/README.adoc b/README.adoc
index 5f710cf66..72b49f9ba 100644
--- a/README.adoc
+++ b/README.adoc
@@ -179,6 +179,24 @@ Building the documentation builds also the project without running tests.
The generated documentation is available from `target/site/reference/html/index.html`.
+=== Building and stagin... | 35 | 26 | 6 | [{"id": "G0", "claim": "The transactions documentation points to outdated versions and links (Couchbase Server 6.5, Java client 3.0.0) instead of the current documentation and the 6.6.1 minimum.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Capel... | null |
spring-projects__spring-data-couchbase__1618 | spring-projects/spring-data-couchbase | 1,618 | defect | 7a05754161c1e79b914bf797be9c0cddc8b2bc71 | 07e94629802930221aa2946ceb96fbe828994188 | Add suport for JsonValue annotation on Enums. | Implement the @ JsonValue annotation with a property-value converter.
Closes #1617.
| diff --git a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java b/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java
index 117c119c5..3ef63b751 100644
--- a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfigur... | 2 | 1 | 0 | [{"id": "G0", "claim": "The converter factory should perhaps also look for the shaded (repackaged) JsonValue annotation, not only com.fasterxml.jackson.annotation.JsonValue.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The toString() fallback in getJsonV... | null |
spring-projects__spring-data-couchbase__197 | spring-projects/spring-data-couchbase | 197 | defect | 9842e1f7e94168ad2d4a826d6bfd5dd9e6de403e | fb0b773672631700d2f4476040afeffb14cc22e4 | DATACOUCH-451 Should be able to run integration tests and all unit tests | This change enables running the integration tests with the command:
mvn verify
The integration tests are updated so they compile and pass. They are renamed so they are executed by the failsafe plugin instead of the surefire plugin.
The surefire plugin configuration is updated to include unit tests in class... | diff --git a/pom.xml b/pom.xml
index 523d0f047..67997261b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -220,6 +220,62 @@
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven... | 4 | 3 | 1 | [{"id": "G0", "claim": "Integration tests should not be kept in a separate src/integration source root wired up with build-helper-maven-plugin; unit and integration tests should live in the standard test source directory and be separated only by a naming convention, as in Spring Data Cassandra.", "category": "design", ... | null |
spring-projects__spring-data-couchbase__198 | spring-projects/spring-data-couchbase | 198 | defect | 67479aa7565f1b4d1b97dbe3be3980e39264faeb | 90c3b89083f937debd288b5dd18f87797f51f144 | #DATACOUCH-206 set scan consistency on repository method | When using N1QL with spring data repositories, there is no way to set the scan consistency individually, only a global default could be set.
This adds a `@WithConsistency` annotation that allows you to set the scan consistency per query.
When building the query parameters in `AbstractN1qlBasedQuery` and `ReactiveAb... | diff --git a/src/main/java/org/springframework/data/couchbase/core/query/WithConsistency.java b/src/main/java/org/springframework/data/couchbase/core/query/WithConsistency.java
new file mode 100644
index 000000000..1e052a530
--- /dev/null
+++ b/src/main/java/org/springframework/data/couchbase/core/query/WithConsistency... | 4 | 3 | 2 | [{"id": "G0", "claim": "Since @WithConsistency may be applied to methods where it does not belong, it might be cleaner to add a consistency attribute to @Query instead of using a separate annotation.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javad... | null |
spring-projects__spring-data-couchbase__268 | spring-projects/spring-data-couchbase | 268 | defect | e72cdba6ee18a9b8aabc353c00841d7d2d37cff5 | c158cda006ba25b072be77f88eb0989f36a0ac36 | DATACOUCH-623 - Add replace() method to CouchbaseRepository for CAS u… | …sage.
- [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
- [x] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATACOUCH).
- [x] You use the code formatters provided [he... | diff --git a/src/main/java/org/springframework/data/couchbase/repository/CouchbaseRepository.java b/src/main/java/org/springframework/data/couchbase/repository/CouchbaseRepository.java
index 5544d7e58..364dbc64b 100644
--- a/src/main/java/org/springframework/data/couchbase/repository/CouchbaseRepository.java
+++ b/src/... | 3 | 3 | 1 | [{"id": "G0", "claim": "Technology-specific replace/replaceAll methods should not be added to the repository API; instead the Spring Data code should check whether the entity has a version and issue the store-specific replace call itself.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
spring-projects__spring-data-couchbase__274 | spring-projects/spring-data-couchbase | 274 | defect | a85720c8f4ff2d4a3c317d31d6d36b22482c2826 | a00e9973e190e7e6166c3032dbe7949724a6ce74 | DATACOUCH-625 - Save doesn't return updated entity if immutable. | Modified applyUpdatedCas() to return accessor.getBean() which will
occur if the version property is Immutable.
Created applyUpdateId() that is analogous to applyUpdatedCas()
Factored out the equals() method that was used by a number of
test entity objects.
- [x] You have read the [Spring Data contribution guidel... | diff --git a/src/main/java/org/springframework/data/couchbase/core/CouchbaseTemplateSupport.java b/src/main/java/org/springframework/data/couchbase/core/CouchbaseTemplateSupport.java
index dc4403f3d..04b4ccac9 100644
--- a/src/main/java/org/springframework/data/couchbase/core/CouchbaseTemplateSupport.java
+++ b/src/mai... | 2 | 1 | 0 | [{"id": "G0", "claim": "Id population should happen on the Template API level rather than in MappingCouchbaseConverter, as in MongoDB where id population was extracted out of the places that duplicated it.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.