Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PdfBox broke my tests #549

Open
johngray1965 opened this issue Nov 16, 2023 · 1 comment
Open

PdfBox broke my tests #549

johngray1965 opened this issue Nov 16, 2023 · 1 comment
Labels
type: bug Existing feature doesn't work correctly

Comments

@johngray1965
Copy link

Describe the bug
After adding pdfbox to my project my instrumented tests started to fail with:

Could not initialize class org.bouncycastle.operator.DefaultSignatureAlgorithmIdentifierFinder

To reproduce

./gradlew connectedDebugAndroidTest```

**PDF example**
No pdf involved, the tests don't even use pdfbox.   It's the mere presence of pbfbox that breaks the tests.

**Expected behavior**
The tests run

**Actual behavior**
Fails to build the tests

**Environment details:**
 - PdfBox-Android version: 2.0.27.0
 - Android API version: doesn't appear to matter

**Additional context**
I'm not sure this is really a bug per se, but it's a big problem for me nonetheless.   I'm hoping there's a simple workaround.   BTW, I did git bisect to figure where the tests broke, it's definitely the commit where pfbox was added.   I was able to get the commit after pdfbox was added to run the tests by removing pdfbox and commenting out the code that used it.   It can build releases of the app, I can run unit tests, but I cannot run tests on the device since I added the dependency to pdfbox.
@johngray1965 johngray1965 added the type: bug Existing feature doesn't work correctly label Nov 16, 2023
@johngray1965
Copy link
Author

This appears to be due to conflicting versions for of bouncy-castle. Dependbot is telling you to update. Please, please, please apply the update.

@johngray1965 johngray1965 changed the title PdfBox broken my tests PdfBox broke my tests Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Existing feature doesn't work correctly
Projects
None yet
Development

No branches or pull requests

1 participant