From 31b6fa1d89379c090c1b7b98d01789c9668edb40 Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Wed, 19 May 2021 17:08:17 -0400 Subject: [PATCH] Fix issues with message conversion in mongodb sink Fore more info see: https://stackoverflow.com/questions/67131500/mongodb-sink-issue-while-writing-a-json-data-from-http-source Resolves https://github.com/spring-cloud/stream-applications/issues/165 This commit also addresses a doc update for sftp-source --- applications/sink/mongodb-sink/pom.xml | 7 +++++-- applications/source/sftp-source/README.adoc | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/sink/mongodb-sink/pom.xml b/applications/sink/mongodb-sink/pom.xml index c74a071c..fd353acb 100644 --- a/applications/sink/mongodb-sink/pom.xml +++ b/applications/sink/mongodb-sink/pom.xml @@ -53,14 +53,17 @@ ${project.version} org.springframework.cloud.fn.consumer.mongo.MongoDbConsumerConfiguration.class - mongodbConsumer - + byteArrayTextToString|mongodbConsumer org.springframework.cloud.fn mongodb-consumer + + org.springframework.cloud.fn + payload-converter-function + diff --git a/applications/source/sftp-source/README.adoc b/applications/source/sftp-source/README.adoc index 9ec82749..f2f963c4 100644 --- a/applications/source/sftp-source/README.adoc +++ b/applications/source/sftp-source/README.adoc @@ -144,6 +144,7 @@ $$max-fetch$$:: $$The maximum number of remote files to fetch per poll; default $$preserve-timestamp$$:: $$Set to true to preserve the original timestamp.$$ *($$Boolean$$, default: `$$true$$`)* $$remote-dir$$:: $$The remote FTP directory.$$ *($$String$$, default: `$$/$$`)* $$remote-file-separator$$:: $$The remote file separator.$$ *($$String$$, default: `$$/$$`)* +$$rename-remote-files-to$$:: $$A SpEL expression resolving to the new name remote files must be renamed to after successful transfer.$$ *($$Expression$$, default: `$$$$`)* $$stream$$:: $$Set to true to stream the file rather than copy to a local directory.$$ *($$Boolean$$, default: `$$false$$`)* $$tmp-file-suffix$$:: $$The suffix to use while the transfer is in progress.$$ *($$String$$, default: `$$.tmp$$`)*