Commit Graph

819 Commits

Author SHA1 Message Date
Spring Operator
ca80dc71e7 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://xslthl.sf.net (301) with 1 occurrences could not be migrated:
   ([https](https://xslthl.sf.net) result AnnotatedConnectException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://www.puppycrawl.com/dtds/configuration_1_3.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/configuration_1_3.dtd ([https](https://www.puppycrawl.com/dtds/configuration_1_3.dtd) result 404).
* [ ] http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://asciidoctor.org with 1 occurrences migrated to:
  https://asciidoctor.org ([https](https://asciidoctor.org) result 200).
* [ ] http://sourceforge.net/projects/xslthl/ with 14 occurrences migrated to:
  https://sourceforge.net/projects/xslthl/ ([https](https://sourceforge.net/projects/xslthl/) result 200).
* [ ] http://www.w3.org/TR/CSS21/propidx.html with 1 occurrences migrated to:
  https://www.w3.org/TR/CSS21/propidx.html ([https](https://www.w3.org/TR/CSS21/propidx.html) result 200).
* [ ] http://repo.spring.io/libs-milestone-local with 2 occurrences migrated to:
  https://repo.spring.io/libs-milestone-local ([https](https://repo.spring.io/libs-milestone-local) result 302).
* [ ] http://repo.spring.io/libs-snapshot-local with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot-local ([https](https://repo.spring.io/libs-snapshot-local) result 302).
* [ ] http://repo.spring.io/release with 1 occurrences migrated to:
  https://repo.spring.io/release ([https](https://repo.spring.io/release) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 28 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 14 occurrences
2019-03-26 12:44:50 +01:00
Spring Operator
4b01edb333 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 301 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-25 14:32:25 +01:00
Spring Operator
ea995143d6 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://docs.spring.io/spring-framework/docs/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-framework/docs/ ([https](https://docs.spring.io/spring-framework/docs/) result 200).
* http://docs.spring.io/spring-shell/docs/current/api/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-shell/docs/current/api/ ([https](https://docs.spring.io/spring-shell/docs/current/api/) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 14 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 with 2 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 28 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 14 occurrences
2019-03-19 14:12:48 +01:00
Soby Chacko
1c47daa686 Next update version: 1.3.4.BUILD-SNAPSHOT 2018-06-12 12:43:56 -04:00
Soby Chacko
6300fb6971 1.3.3.RELEASE 2018-06-12 09:51:00 -04:00
Soby Chacko
729a30f48b Polishing AggregateApplicationBuilder 2018-06-11 16:01:45 -04:00
Oleg Zhurakousky
cb1854d0fd GH-1256 Polishing Health Indicator section
Resolves #1344
Resolves #1256
2018-06-11 15:41:12 -04:00
Soby Chacko
95b5594dec Revise health indicator docs
Resolves #1256

Addressing PR review comments
2018-06-11 15:40:53 -04:00
Soby Chacko
efa9319fe3 Revise Schema Registry docs
Resolves #1311
Resolves #1343

Addressing PR review comments

Addressing PR review comments

Addressing PR review comments

Addressing PR review comments
2018-06-11 15:40:18 -04:00
Oleg Zhurakousky
e319fe8c02 GH-1294 Fixed NPE in AvroSchemaRegistryClientMessageConverter
The NPE was a result of not following defensive programming practices and that is fixed.
Also, we already support both reader and writer schema being null where new ReflectDatumReader(type) is used in getDatumReader(..)  operation.
That said there may still be conditions which are not supported and that is okay since in the end it's a MessageConverter and as such it is one
of the extension points of the framework allowing user to provide a custom one follwing instructions in 'User-defined Message Converters' of the reference guide.

Resolves #1294
2018-06-11 15:29:59 -04:00
Soby Chacko
76ac4983f9 Add ConditionalOnMissingBean on SchemaRegistryClient configuration
Resolves #1307
Resolves #1308
2018-06-11 15:28:15 -04:00
jmaxwell
ba077b58fc GH-1292 Remove Unnecessary ByteBuffer
Resolves #1292
Resolves #1293
2018-06-11 15:27:13 -04:00
Oleg Zhurakousky
e4555c69f7 GH-858 made RetryTemplate injectable
Resolves #858
2018-06-11 15:17:51 -04:00
Oleg Zhurakousky
cd23e3ada4 GH-1214 Fixed ClassUtils check for Servlet API
Resolves #1214
2018-06-11 15:12:54 -04:00
jmaxwell
bbc43016df 1217 Disable Pretty Print
Resolves #1224
2018-06-11 15:07:01 -04:00
Oleg Zhurakousky
0670a36ef2 Polishing DefaultSchemaRegistryClient
- made RestTemplate final
- removed setter

Resolves #1222 #1223
2018-06-11 15:06:38 -04:00
jmaxwell
c23d6ed99e 1222 DefaultSchemaRegistryClient should accept a custom RestTemplate.
Added protected accessors to allow subclasses access to RestTemplate and endpoint fields.
2018-06-11 15:06:17 -04:00
jmaxwell
688d73597c 1218 Inconsistent use of AvroSchemaRegistryClientMessageConverter.AVRO_FORMAT 2018-06-11 14:58:16 -04:00
jmaxwell
30ad6b659a 1215 CachingCachingRegistryClient stores data by wrong keys resulting in fetch operations always missing.
Resolves #1216
2018-06-11 14:53:02 -04:00
jmaxwell
7d5b538009 1202 Inconsistent use of this.prefix in AvroSchemaRegistryClientMessageConverter.resolveSchemaForWriting
Resolves #1202
Resolves #1203
2018-06-11 14:50:10 -04:00
Soby Chacko
48ff2cc620 Next update: 1.3.3.BUILD-SNAPSHOT 2018-01-10 14:15:39 -05:00
Soby Chacko
950c3e0ac3 1.3.2.RELEASE 2018-01-10 13:58:14 -05:00
Oleg Zhurakousky
090df5bd16 polishing
change the name of the test method and remove System.out from the test
2018-01-08 16:24:09 -05:00
Oleg Zhurakousky
2278226074 GH-1153 Fixed consumer to honor channel-bound contentType
- Added SpringIntegration backed test binder
- Added initial binder test suite

Resolves #1153
2018-01-08 15:19:27 -05:00
Oleg Zhurakousky
cc22543778 Removed PostProcessorConfiguration from BindingServiceConfiguration
- substituted BPPs for InitializingBeans removing the possibility of early initialization.

Resolves #1172

backport polishing
2018-01-04 14:08:45 -05:00
Oleg Zhurakousky
e78528c261 polishing after back porting early initialization issues 2018-01-04 08:34:29 -05:00
Oleg Zhurakousky
c00f69d288 Aligned StreamEmitterAnnotationBeanPostProcessor with StreamListenerAnnotationBeanPostProcessor
. . .as part of the effort to fix early initialization of beans inside BeanPostProcessors.

Resolves #1157
2018-01-03 22:43:32 -05:00
Oleg Zhurakousky
6288669d75 polishing BinderAwareRouterBeanPostProcessor
- removed BeanPostProcessor from BinderAwareRouterBeanPostProcessor
- simplified BinderAwareRouterBeanPostProcessor configuration in BindingServiceConfiguration

Resolves #1171
Resolves #1170
2018-01-03 22:37:14 -05:00
Soby Chacko
4aa34d233d Next update version: 1.3.2.BUILD-SNAPSHOT 2017-12-27 12:29:41 -05:00
Soby Chacko
3f79254293 Upgrade to 1.3.1.RELEASE 2017-12-27 09:57:05 -05:00
Soby Chacko
360ef154ae Update spring-cloud-build to 1.3.7.RELEASE 2017-12-26 18:24:01 -05:00
Oleg Zhurakousky
11ea4b3436 1146 Fixed early initialization in StreamListenerAnnotationBeanPostProcessor
Removed autowiring from StreamListenerAnnotationBeanPostProcessor in favor of late-binding callbacks
Fixed tests

Resolves #1146

polished for Java 1.7 compliance
2017-12-15 17:51:27 +01:00
Oleg Zhurakousky
85ede8a3fd General cleanup of StreamListenerAnnotationBeanPostProcessor
- Removed BeanFactoryAware dependency
- Simplified `isDeclarativeMethodParameter` and related operations
2017-12-15 16:20:07 +01:00
Oleg Zhurakousky
25877b3d6e StreamListenerAnnotationBeanPostProcessor refactoring/polishing
Continue the work started in f53ff9585a
- simplified 'isDeclarativeMethodParameter(..) operation of StreamListenerAnnotationBeanPostProcessor
- aligned MessageChannelToInputFluxParameterAdapter and MessageChannelToInputObservableParameterAdapter around the actual Message
2017-12-15 16:16:46 +01:00
Oleg Zhurakousky
dad81c617b 1146 Initial fix for eager initialization in StreamListenerAnnotationBPP
- Removed dependency and callbacks to 'BeanFactoryUtils.beansOfTypeIncludingAncestors' in
    StreamListenerAnnotationBeanPostProcessor in favor of more appropriate and lazy DI
    mechanism provided by Spring.
  - Polishing

polishing as part of the cherry-picking
2017-11-28 08:37:38 -05:00
Oleg Zhurakousky
e5108428d4 GH-1121 Fixed contentType equals logic (#1122)
Fixed contentType equals logic
2017-11-02 13:50:11 -04:00
Gary Russell
cce69a6bd8 KAFKA GH-223: Handle unexpected content type
See https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/223

When using native encoding; NPE when no class name derived from the content type.

Do not attempt deserialization if `JavaClassMimeTypeUtils.classNameFromMimeType(contentType)`
returns `null`.

Test case in the Kafka binder.
2017-10-10 14:06:07 -04:00
Gary Russell
e2c214b34e Update POMs to 1.3.1.BUILD-SNAPSHOT 2017-09-29 16:17:43 -04:00
Gary Russell
9e46ec00a0 Versions to 1.3.0.RELEASE, Bismuth-RELEASE 2017-09-29 11:31:06 -04:00
Artem Bilan
4c33e5eb58 GH-1083: Disallow reuse bean name for bindings
Resolves spring-cloud/spring-cloud-stream#1083

By default Spring Framework allows beans overriding via the same name.
The binding target definitions (`@Input` and `@Output`) populate beans as well
and when we use the same name for target we end up with unexpected behavior
but without errors.
Since it isn't so obvious via Spring Framework bean definition DSLs
(XML or Java & Annotations) how to override beans with the same name,
that is absolutely easy to use the same value for `@Input` and `@Output`
definitions even in different binding interfaces.
That's hard to analyze fro the target application since mostly
`@Input` and `@Output` produce `MessageChannel` beans.

* Fail fast with the `BeanDefinitionStoreException` when we meet existing
bean definition for the same name
* Add JavaDocs to the `@Input` and `@Output` to explain that their `value`
is a bean name, as well as destination by default

Since `@EnableBinding` is `@Inherited`, the inheritor picks up it from the
super class during configuration class parsing.
The parsing process logic is such that after the root class we go to parse its
super classes, and therefore come back to the `@EnableBinding` again.
In this case we process all the `@Import`s one more time and collect them to
the root `configurationClass`.
Essentially we get a duplication for the `ImportBeanDefinitionRegistrar`s
such as `BindingBeansRegistrar`.
The last one parsed `@EnableBinding` and registers appropriate beans for the
`@Input` and `@Output`, as well as for the binding interface - `BindableProxyFactory`.
But since we have it twice in the `configurationClass` we end up with
`BeanDefinitionStoreException` mentioned before.
That's how Spring Framework works with inheritance for configuration classes
and that's may be why it allows to override beans by default

* Skip parsing `@EnableBinding` one more time if the bean definition for
binding interface is already present in the `registry`
* Fix `AggregateWithMainTest` do not process `@ComponentScan` what causes
picking up the configuration classes for children contexts in the aggregation
* Fix `testBindableProxyFactoryCaching()` do not register `Source` and `Processor`
in the same application context because both of them cause registration for the
`Source.OUTPUT` bean
2017-09-28 13:41:18 -04:00
Soby Chacko
9fc51cb6e2 GH-1080: Fix StreamListener methods for proxies
Fix #1080

When class with `@StreamListener` method is proxied we end up
with the double target subscribers registration because we meet
the same method multiple times during `ReflectionUtils.doWithMethods()`

* Use `ReflectionUtils.getUniqueDeclaredMethods()` instead to extract
the list of method candidates

**Cherry-pick to 1.2.x**
2017-09-27 14:04:36 -04:00
Gary Russell
3701615a67 Back to 1.3.0.BUILD-SNAPSHOT 2017-09-13 11:04:00 -04:00
Gary Russell
15922e7321 Revert "Back to 1.3.0.BUILD-SNAPSHOT"
This reverts commit baed445872.

For release train build.
2017-09-13 10:37:07 -04:00
Gary Russell
baed445872 Back to 1.3.0.BUILD-SNAPSHOT 2017-09-12 15:54:54 -04:00
Gary Russell
5722f5af06 Update POMs to RC1; Boot 1.5.7; Reactor Bismuth-M4 2017-09-12 14:39:02 -04:00
Vinicius Carvalho
11b21d9eec Fixes issue with originalContentTypeHeader
- Fixes #1072
- Added a new ContentTypeResolver that searches for originalContentType
  as well as contentType headers
2017-09-11 09:55:07 -04:00
Soby Chacko
4d8d3ebca5 Remove redundant groupId declaration in the parent scst pom.xml
Fix #971
2017-09-06 11:03:47 -04:00
Ilayaperumal Gopinathan
33e9f6fb11 GH-1043: Add codecov support
* Add codecov support

Resolves #1043

* Remove unwanted service configs from travis

 - Spring Cloud Stream doesn't use Redis/Kafka services as these were originally added to support their binder support in the same repo
2017-09-05 13:38:47 -04:00
Vinicius Carvalho
007594cafd Fixes issue with originalContentType 2017-08-24 20:25:21 -04:00
Artem Bilan
51e7161056 Use Checkstyle configs from src directly
Since we rely on the Checkstyle configs in the `spring-cloud-stream-tools`
module, we really need its artifact if we would like to use it as a
dependency for the `maven-checkstyle-plugin`.
But at the same time it is possible only if we run `package` phase.
During `compile/test` phase we don't have artifact yet and end up with
the error that no property set for Checkstyle.

* Use Checkstyle config files directly for the `maven-checkstyle-plugin`
properties.
This way we don't need any artifact to build in advance
2017-08-22 14:02:57 -04:00