You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2021/06/18 07:48:02 UTC

[jira] [Reopened] (SOLR-15484) Frequent test failures for JWTAuthPluginIntegrationTest

     [ https://issues.apache.org/jira/browse/SOLR-15484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl reopened SOLR-15484:
--------------------------------

After the fix, there are still some failures where security.json is not applied even after 10 seconds, e.g. [https://jenkins.thetaphi.de/view/Solr/job/Solr-main-Linux/948/testReport/junit/org.apache.solr.security/JWTAuthPluginIntegrationTest/mockOAuth2Server/]:

{noformat}
Failed
org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server

Failing for the past 1 build (Since #948 )
Took 11 sec.
Error Message
java.lang.Exception: Custom 'security.json' not applied in 10000ms
Stacktrace
java.lang.Exception: Custom 'security.json' not applied in 10000ms
	at __randomizedtesting.SeedInfo.seed([9923019762100B0E:1E23E0C707ACF7E2]:0)
	at org.apache.solr.security.JWTAuthPluginIntegrationTest.configureClusterMockOauth (JWTAuthPluginIntegrationTest.java:275)
	at org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server (JWTAuthPluginIntegrationTest.java:140)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke (Method.java:566)
{noformat}


> Frequent test failures for JWTAuthPluginIntegrationTest
> -------------------------------------------------------
>
>                 Key: SOLR-15484
>                 URL: https://issues.apache.org/jira/browse/SOLR-15484
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: main (9.0)
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>            Priority: Major
>             Fix For: main (9.0)
>
>
> Example:
> Build: [https://ci-builds.apache.org/job/Solr/job/Solr-Check-main/1053/]
> {code}
> 1 tests failed.
> FAILED:  org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server
> Error Message:
> org.junit.ComparisonFailure: Should have received 401 code expected:<[401]> but was:<[200]>
> Stack Trace:
> org.junit.ComparisonFailure: Should have received 401 code expected:<[401]> but was:<[200]>
>  at __randomizedtesting.SeedInfo.seed([7827798BF4D91EFE:FF2798DB9165E212]:0)
>  at org.junit.Assert.assertEquals(Assert.java:117)
>  at org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server(JWTAuthPluginIntegrationTest.java:143)
> ...
> {code}
> The other test failure is
> {code}
> org.apache.solr.security.JWTAuthPluginTest.initWithInvalidTrustedCertsFile
> Failing for the past 1 build (Since #924 )
> Took 7 ms.
> Error Message
> junit.framework.AssertionFailedError: Expected exception SolrException but no exception was thrown
> Stacktrace
> junit.framework.AssertionFailedError: Expected exception SolrException but no exception was thrown
> 	at __randomizedtesting.SeedInfo.seed([8651FF5FA6DE29A1:91C33C9AFD0459B5]:0)
> 	at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2863)
> 	at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2849)
> 	at org.apache.solr.security.JWTAuthPluginTest.initWithInvalidTrustedCertsFile(JWTAuthPluginTest.java:521)
> ...
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org