Commit Graph

1143 Commits

Author SHA1 Message Date
Oleg Zhurakousky
c8b79eb490 GH-1448 Fixed ServerController override
Resolves #1448
2019-01-22 16:14:30 +01:00
Oleg Zhurakousky
630a93171c GH-1556 Added isInput() operation to Binding
Resolves #1556
2019-01-21 17:33:48 +01:00
Oleg Zhurakousky
6f073fdf36 minor doc polish
Resolves #1585
2019-01-21 16:43:41 +01:00
Artem Bilan
460ba9cecb GH-1569: Fix binder-specific environment merging
Fixes spring-cloud/spring-cloud-stream#1569

When `inheritEnvironment = true` (default), some provided properties
(including `spring.main.sources`) are not populated into the target
binder's environment, since Spring Boot relies on the presence of
the `configurationProperties` properties source which is transferred
from the parent context

* Remove `configurationProperties` from the `binderEnvironment` before
starting binder's application context
* Ensure that `spring.main.sources` is applied for the binder's
application context in the `BinderFactoryConfigurationTests`
* Fix `GreenfieldFunctionEnableBindingTests` for random HTTP port since
`8080` is too generic and clashes with build environment
* Fix `StreamListenerAnnotatedMethodArgumentsTests` for `Locale.US`
for proper assertion against validation message
* Mention `spring.profiles.active` configuration property for the
binder specific environment
2019-01-21 15:40:55 +01:00
Oleg Zhurakousky
00ce61a753 fixed reactive pom after cherry-pick 2019-01-21 15:35:28 +01:00
Oleg Zhurakousky
ea594d1ebd GH-1578 Fixed error handling in DefaultPollableMessageSource
ensured that RequeueCurrentMessageException is treated differently where message does not end up in error channel
Resolves #1578
2019-01-21 15:33:50 +01:00
Oleg Zhurakousky
794c75f536 GH-1581 Fixed multi-IntegrationFlow conflicts
Removed dependency on IntegrationFlow from AbstractMessageChannelBinder as it was unnecessary
Fixed and re-enabled ignored tests

Resolves #1581
2019-01-18 15:07:15 +01:00
buildmaster
664b850996 Bumping versions to 2.1.1.BUILD-SNAPSHOT after release 2019-01-08 11:43:40 +00:00
buildmaster
2453e181b5 Going back to snapshots 2019-01-08 11:43:40 +00:00
buildmaster
1535f37e16 Update SNAPSHOT to 2.1.0.RELEASE 2019-01-08 11:41:31 +00:00
Oleg Zhurakousky
70b30a95f5 Added additional tests for Argument Resolvers 2019-01-07 16:26:25 +01:00
Oleg Zhurakousky
6320ff55ff Polished BinderFactoryConfiguration to ensure MessageHandlerMethodFactory consistency 2019-01-05 07:48:31 +01:00
Oleg Zhurakousky
7dcdd22eb4 GH-1549 Added not on using 'spring.main.sources' as environment property
Resolves #1549
2019-01-04 15:28:09 +01:00
Oleg Zhurakousky
9d889820a0 GH-1576 Added pre-req docs for testing with PollableMessageSource
Resolves #1576
2019-01-04 15:13:32 +01:00
Oleg Zhurakousky
cd7ef9eefb GH-1575 Fixed MessageHeaders regression
Added additional tests for both MessageHeaders and Map/Collections
Fixed ByteArrayMessageConverter to ensure it handles Object  if CT is octet-stream and added tests for it

Resolves #1575
2019-01-04 07:52:45 +01:00
Oleg Zhurakousky
77198db75c Added ability to autowire MessageSource to TestBinder 2019-01-03 20:28:35 +01:00
Oleg Zhurakousky
adff24f54e GH-1431,GH-1524,GH-1381 Documentation updates
Documented new Test Binder capabilities
Created initila version of migration guide
Added StreamRetryTemplate to migration guide
Updates doc with 2.1 updates

Resolves #1431
Resolves #1524
Resolves #1381
2019-01-02 15:49:47 +01:00
Oleg Zhurakousky
af0b1ed0ae Polished doc for binding control commands 2019-01-01 12:25:28 +01:00
Oleg Zhurakousky
112dad8d4e GH-1570 Made DynamicDestinationsBindable synchronized
Made DynamicDestinationsBindable synchronized to preserve consistency to the internal map

Resolves #1570
2019-01-01 11:19:52 +01:00
Oleg Zhurakousky
b0af0205ba GH-1573 Fixed BindingHandlerAdvise for validation
Fixed BindingHandlerAdvise to ensure it creates and ValidationBindHandler instead of simple BindHandler to ensure that during the merge of properties validation is not lost.
Resolves #1573
2018-12-31 12:39:40 +01:00
Oleg Zhurakousky
af1a480bdd Switched back to SCF snapshot 2018-12-21 14:17:47 +01:00
buildmaster
afa5cd2f9b Going back to snapshots 2018-12-20 19:37:20 +00:00
buildmaster
953de7f02e Update SNAPSHOT to 2.1.0.RC4 2018-12-20 19:36:19 +00:00
Oleg Zhurakousky
6ba745546a Upgraded to spring-cloud-function 2.0.0.RC3 2018-12-20 20:28:18 +01:00
Oleg Zhurakousky
e884b3544f GH-1551 Added health.binders.enabled to additional-spring-configuration-metadata.json
Resolves #1551
2018-12-18 13:56:08 +01:00
Phillip Verheyden
ade40dc2bb Polish around default binding IllegalStateException
If no binders were found the exception should reflect that instead of indicating that multiple binders were found

Resolves #1561
2018-12-18 13:01:34 +01:00
Oleg Zhurakousky
795aadc7b5 Added additional ContentType TCK tests
Added tests to make sure that application/json CT will result in String conversion in the event the actual type can not be determined
2018-12-18 12:53:44 +01:00
Oleg Zhurakousky
a731021b43 GH-1564 Delegated type-conversion to MessageConverters
The following is the summary of changes which essentially delegate all type conversion back to MessageConverter.
The only thing remains is the `BINDER_ORIGINAL_CONTENT_TYPE` logic to ensure backward compatibility

* `MessageConverterConfigurer` was brought pretty much back to the state it was before all those questionable type conversion changes
* `BinderFactoryConfiguration` configures  custom argument resolvers which will be removed as soon as https://jira.spring.io/browse/SPR-17503 is addressed.
* The two new argument resolvers, defer from their original counterparts in that they change the order of type assertion ensuring that, for example, byte[] does not match Object and would have to be sent to MessageConverter for possible conversion. These two resolvers will be removed once https://jira.spring.io/browse/SPR-17503 is addressed.

Resolves #1564
Resolves #1565
2018-12-18 09:37:46 +01:00
Phillip Verheyden
d5aa0906f4 Fix the README link to the Eclipse formatter
Resolves #1558
2018-12-17 14:12:50 +01:00
buildmaster
c928b28a10 Going back to snapshots 2018-12-13 20:19:16 +00:00
buildmaster
5d07afc956 Update SNAPSHOT to 2.1.0.RC3 2018-12-13 20:18:14 +00:00
Oleg Zhurakousky
69652c7613 polishing 2018-12-13 18:54:36 +01:00
Oleg Zhurakousky
6319e04573 polishing 2018-12-13 17:35:37 +01:00
Oleg Zhurakousky
d81cb16dfb polishing 2018-12-13 16:54:39 +01:00
Oleg Zhurakousky
f080ca6cb0 GH-1554 resetting propagateOriginalContentType flag to be true 2018-12-13 15:26:04 +01:00
buildmaster
6cb74414b0 Bumping versions 2018-12-12 19:07:48 +00:00
Oleg Zhurakousky
adc4e0f4ca polishing 2018-12-12 19:05:26 +01:00
Oleg Zhurakousky
07b9adb0dc GH-1554 Introduced flag to disable 1.3 content type propagation
Introduced `spring.cloud.stream.propagateOriginalContentType` boolean property  on BindingServiceProperties
Resolves #1554
2018-12-12 16:50:28 +01:00
Oleg Zhurakousky
fd989cd712 GH-1553 Fixed inconsistencies in function bootstrap
Resolves #1553
2018-12-12 16:25:22 +01:00
Oleg Zhurakousky
1a7548fcf0 GH-1539 Fixed support for fluxed Consumer
Fixed support for Consumer<Flux<?>> which currently is not wrapped with FluxWrapper

NOTE: The newly created FluxedConsumerWrapper will be migrated to Spring Cloud Function after SCSt-2.1.0 and SCF-2.0.0 releases

Resolves #1539
2018-12-10 17:56:43 +01:00
Oleg Zhurakousky
b60c3d08ee GH-1544 Fixed broken doc links
Resolves #1544
2018-12-10 15:26:06 +01:00
pw
2970b3d576 Updated formatting to properly show bullet points in README (#1545)
* updated formatting

* Update README.adoc
2018-12-05 12:16:23 -05:00
Oleg Zhurakousky
54c70c568d GH-1543 Removed 'processor' dependency from AMCB
Removed autowired  dependency from AbstractMessageChannelBinder. It was lingering from the previous effort of extending Processor apps with functions.
Basically with regard to the extending the app effort functions will be composed at the end of the existing processor (if any).
Resolves #1543
2018-11-30 16:38:32 +01:00
Oleg Zhurakousky
7e811a72c6 GH-1540 Made BindingsEndpoint.State public
Resolves #1540
2018-11-27 08:43:58 +01:00
Oleg Zhurakousky
a1e254cfc5 GH-1536 Polishing
Resolves #1538
2018-11-26 11:58:11 +01:00
tkavukcu
2607ac14c6 Fixed native encoding for output of invoked function.
Resolves #1536
2018-11-22 22:59:54 +01:00
Oleg Zhurakousky
f6381d72b7 GH-1533 Fixed regression in ObjectStringMessageConverter
Resolves #1533
2018-11-21 19:26:26 +01:00
Oleg Zhurakousky
8161147469 Upgraded to SCF 2.0.0.RC2 2018-11-19 19:18:56 +01:00
buildmaster
2c8e2255d0 Going back to snapshots 2018-11-19 14:42:16 +00:00
buildmaster
4775defbf0 Update SNAPSHOT to 2.1.0.RC2 2018-11-19 14:41:20 +00:00