This is an automated email from the ASF dual-hosted git repository. rxl pushed a commit to branch branch-2.6 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit e0de3992468d9fa83c3abfd1ab40b90524fe4624 Author: Jia Zhai <[email protected]> AuthorDate: Sun Jul 5 09:39:07 2020 -0500 add pulsar-client-messagecrypto-bc into pulsar-client module (#7447) Fixes #6834 ### Motivation `MessageCryptoBc` implements the interface of `MessageCrypto`. while `pulsar-client` did a shade to`ByteBuf`, and caused the method parameter changed from `org.apache.pulsar.shade.io.netty.buffer.ByteBuf` to `io.netty.buffer.ByteBuf` and will cause error of: ``` Caused by: java.lang.NoSuchMethodError: 'org.apache.pulsar.shade.io.netty.buffer.ByteBuf org.apache.pulsar.client.api.MessageCrypto.encrypt(java.util.Set, org.apache.pulsar.client.api.CryptoKeyReader, java.util.function.Supplier, org.apache.pulsar.shade.io.netty.buffer.ByteBuf) ``` ### Modifications add pulsar-client-messagecrypto-bc into pulsar-client dependency to avoid method-not-found issue. (cherry picked from commit d83133ae562e09bb597c53eb1748a1ce5256adf4) --- pulsar-client-shaded/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pulsar-client-shaded/pom.xml b/pulsar-client-shaded/pom.xml index ed41bfa..3e5b3f3 100644 --- a/pulsar-client-shaded/pom.xml +++ b/pulsar-client-shaded/pom.xml @@ -38,6 +38,12 @@ <artifactId>pulsar-client-original</artifactId> <version>${project.parent.version}</version> </dependency> + <dependency> + <groupId>org.apache.pulsar</groupId> + <artifactId>pulsar-client-messagecrypto-bc</artifactId> + <version>${project.parent.version}</version> + <optional>true</optional> + </dependency> </dependencies> <build>
