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

issues with Import-Package, versioning scheme and missing class in 1.78.1 #1644

Closed
grgrzybek opened this issue Apr 30, 2024 · 3 comments
Closed

Comments

@grgrzybek
Copy link

With 1.78.1 upgrade I have few problems - similar and different to #1278.

  • org/bouncycastle/asn1/cryptlib/CryptlibObjectIdentifiers.class is available in bcprov-jdk18on-1.77.jar, but not in bcprov-jdk18on-1.78.1.jar
  • this class was moved to bcprov-ext-jdk18on, but only at version 1.78 (there's no 1.78.1). In 1.76 it was available in both libraries
  • missing 1.78.1 of bcprov-ext-jdk18on is something that reminds me of bcpg-jdk18-on 1.72.1 imports wrong version of packages #1278 ;) and it was a bit painful to manage
  • Import-Package in bcprov-jdk18on-1.78.1.jar contains entries like java.io;resolution:=optional,java.lang;resolution:=optional, .... While this is valid since OSGi Core R7, bcprov-jdk18on had only this:
Import-Package: javax.crypto;resolution:=optional,javax.crypto.interfa
 ces;resolution:=optional,javax.crypto.spec;resolution:=optional,javax
 .naming;resolution:=optional,javax.naming.directory;resolution:=optio
 nal,javax.security.auth;resolution:=optional,javax.security.auth.call
 back;resolution:=optional,javax.security.auth.x500;resolution:=option
 al

So it looks like a breaking (from OSGi point of view) change...

@dghgit
Copy link
Contributor

dghgit commented Apr 30, 2024

You need to use bcutil-jdk18on-1.78.1.jar as well.

@grgrzybek
Copy link
Author

Oh, I see CryptlibObjectIdentifiers.class in bcutil-jdk18on... But why is it also available in bcprov-ext-jdk18on?

@dghgit
Copy link
Contributor

dghgit commented May 11, 2024

bcprov-ext-jdk18on-1.178 was uploaded in error. Don't use it. We're in the process of getting a redirection POM uploaded to point people at bcprov-jdk18on.

@dghgit dghgit closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants