-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Disable TokenUtilsEncryptTest#testFailAlgorithm on Java 17+ #18790
Conversation
@famod, missed your comment, sorry,
Interesting, this is a strange error because something like Let me look at it a bit more |
@sberyozkin thanks for taking a closer look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spotted some minor issues. I agree we should merge it.
@famod, @gsmet I don't think it should be ignored. It is not dropped but the name has changed. Rather than merging it as is, I'd suggest to add a BC dependency for this case https://bugs.openjdk.java.net/browse/JDK-8248268. I'll open a Jose4j issue (to support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to investigate an option to use a BC library for now instead of ignoring the test and also open a specific issue to make sure it is run without BC in due time
@sberyozkin Well, yesterday I did try adding:
in test scope but AFAICS, this didn't change anything, maybe because it has to be "installed" explicitly? |
@famod Can you please try passing a system property |
@sberyozkin unfortunately, the following didn't work: diff --git a/tcks/microprofile-jwt/pom.xml b/tcks/microprofile-jwt/pom.xml
index b12da6ace4..d9d393d8ad 100644
--- a/tcks/microprofile-jwt/pom.xml
+++ b/tcks/microprofile-jwt/pom.xml
@@ -24,6 +24,7 @@
<systemPropertyVariables>
<!-- Disable quarkus optimization -->
<quarkus.arc.remove-unused-beans>false</quarkus.arc.remove-unused-beans>
+ <quarkus.security.security-providers>BC</quarkus.security.security-providers>
<mp.jwt.tck.jwks.baseURL>http://localhost:8081/</mp.jwt.tck.jwks.baseURL>
</systemPropertyVariables>
<!-- This workaround allows us to run a single test using
@@ -122,6 +123,11 @@
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcprov-jdk15on</artifactId>
+ </dependency>
+
<!-- Minimal test dependencies to *-deployment artifacts for consistent build order -->
<dependency>
<groupId>io.quarkus</groupId> Might be related to testng, checking... |
Setting system properties like this should just work for TestNG, so that's not it. |
@famod OK, let me drop my change request, thanks, perhaps BC does not provide its own implementation. I'll just follow up with a Jose4J issue |
Ok, thanks! I'll create a housekeeping issue to clean this up eventually. |
Relates to #18372 (comment)
A fix upstream would obviously be much nicer than this XML manipulation. 😉