-
Notifications
You must be signed in to change notification settings - Fork 25k
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
DateProcessorTests#testJodaPatternLocale fails on a FIPS 140 JVM #31724
Comments
Pinging @elastic/es-core-infra |
This seems to run (and fail) more often these days. Found at least four occasions just today: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA=openjdk12,ES_RUNTIME_JAVA=java8fips,nodes=immutable&&linux&&docker/217/console And the above. I'm not sure if we can mute based on a JDK version but will at least open a PR in case we want to do that. |
Sorry I removed the original muting prematurely. But one interesting thing it's shown is that now this test has failed with Java time parsing the idea that it was caused by a bug in Joda as suggested by https://github.com/elastic/elasticsearch/pull/31666/files#diff-bddb6e873fcfacb8409882fd9eeb67b2R117 can be discounted. It really does seem to be caused by something to do with FIPS that affects both time parsing libraries. |
Yes, I think you are right @droberts195. This looks like an issue with the Date parsing in the FIPS 140 provider we use in the tests from Bouncy Castle and looks awfully similar to #33081 which is tracked upstream in bcgit/bc-java#405 |
I imagine it's only US government organisations that run in FIPS mode, so in practice as long as date parsing in FIPS mode works for the US English locale everyone will probably be happy. But if that ends up being the solution then it might be worth adding a similar test that's hardcoded to US English that's not muted in FIPS mode. |
DateProcessorTests#testJodaPatternLocale()
consistently and reproducibly fails when run in a FIPS 140 JVM ( openjdk-8 with BCFIPS 1.0.1 as the FIPS 140 approved Security Provider) , passes otherwiseThe text was updated successfully, but these errors were encountered: