Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-935: Fix KafkaNullConverter supported MimeType #936

Closed
wants to merge 1 commit into from

Conversation

garyrussell
Copy link
Contributor

Resolves #935

Spring Cloud Function now checks if a converter supports the mime type before
calling it. Previously, the converter supported no mime types, so it was never
called, breaking Kafka Tombstone record processing (outbound).

The converter must support all mime types so it can perform a no-op conversion,
retaining the KafkaNull.

The abstract converter will return null whenever the payload is not a KafkaNull,
which is a signal to spring-cloud-function to try the next converter.

@sobychacko sobychacko self-assigned this Jul 13, 2020
Resolves spring-cloud#935

Spring Cloud Function now checks if a converter supports the mime type before
calling it. Previously, the converter supported no mime types, so it was never
called, breaking Kafka Tombstone record processing (outbound).

The converter must support all mime types so it can perform a no-op conversion,
retaining the `KafkaNull`.

The abstract converter will return null whenever the payload is not a `KafkaNull`,
which is a signal to spring-cloud-function to try the next converter.
@sabbyanandan
Copy link
Contributor

Addressed in 83c42a5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KafkaNullConverter should support MimeTypeUtils.ALL
3 participants