Skip to content

Commit

Permalink
add pulsar-client-messagecrypto-bc into pulsar-client module (apache#…
Browse files Browse the repository at this point in the history
…7447)

Fixes apache#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.
  • Loading branch information
jiazhai authored Jul 5, 2020
1 parent 8c55664 commit d83133a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pulsar-client-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d83133a

Please sign in to comment.