eclipse-paho / eclipse-paho/paho.mqtt.java
SecurityException: SHA-256 digest error
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 919
- PR merge metrics
- No merged PRs in 30d
Description
Please fill out the form below before submitting, thank you!
- [x] Bug exists Release Version 1.1.1 ( Master Branch)
- [ ] Bug exists in Snapshot Version 1.1.2-SNAPSHOT (Develop Branch)
I'm trying to make Android app and I must use shrinker to remove unused emthods. It's processing the jar files and when it hits Paho, it crashes:
```
java.lang.SecurityException: SHA-256 digest error for org/eclipse/paho/client/mqttv3/internal/ClientState.class
```
Looking at [the source code](https://android.googlesource.com/platform/tools/base/+/gradle_2.0.0/build-system/gradle-core/src/main/java/com/android/build/gradle/shrinker/FullRunShrinker.java#461), it's using `JarFile.getInputStream()` which is probably what causes the excpetion. Because all other libraries I'm using works just fine, I suspect there is something wrong with signatures in Paho's jar.
Contributor guide
Assessment
This issue has not been assessed yet.