[
https://issues.apache.org/jira/browse/NIFI-7707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17173196#comment-17173196
]
ASF subversion and git services commented on NIFI-7707:
-------------------------------------------------------
Commit 27e7d0b02ab353989857662a5e9a94b11ed7691c in nifi's branch
refs/heads/main from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=27e7d0b ]
NIFI-7707 - This closes #4451. fixed Publish GCP PubSub processor for binary
data
Signed-off-by: Joe Witt <[email protected]>
> [Processor/GCP - PubSub] Avro event re-format when pushed to PubSub
> -------------------------------------------------------------------
>
> Key: NIFI-7707
> URL: https://issues.apache.org/jira/browse/NIFI-7707
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.11.4
> Reporter: Guitton Alexandre
> Assignee: Pierre Villard
> Priority: Major
> Labels: Avro, GCP, easyfix
> Fix For: 1.12.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Hi,
> as discussed on Slack :
> [https://apachenifi.slack.com/archives/C0L9VCD47/p1596463216211700]
> When we generate an avro event from record and we publish it using
> _*PublishPubSub*_ processor the content-type of the file change from
> _*avro/binary*_ to *_UTF-8_* due to the following code part :
> [https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/pubsub/PublishGCPubSub.java#L157]
> This make the event unreadable once Consumed :/
> The workaround we found is base64 encoding the avro message, publishing it to
> PubSub, consuming it, and finally decoding it.
> We expect this part of encoding would be handled by the processors.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)