[ https://issues.apache.org/jira/browse/NIFI-7707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard updated NIFI-7707: --------------------------------- Fix Version/s: 1.12.0 Status: Patch Available (was: In Progress) > [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: 10m > 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)