Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-128774

OAuth2ApplicationRedirectURISchemeException when run testRedirectUriMustMatch under SecurityTest

    Description

    Testray
    Error:

    [exec] com.liferay.oauth2.provider.client.test.SecurityTest > testRedirectUriMustMatch FAILED
         [exec]     java.lang.RuntimeException: com.liferay.oauth2.provider.exception.OAuth2ApplicationRedirectURISchemeException: everything
         [exec]     	at com.liferay.oauth2.provider.client.test.BaseTestPreparatorBundleActivator.start(BaseTestPreparatorBundleActivator.java:93)
         [exec]     	at com.liferay.oauth2.provider.client.test.BaseClientTestCase.setUp(BaseClientTestCase.java:95)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec]     	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
         [exec]     	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
         [exec]     	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.lang.Thread.run(Thread.java:745)
         [exec]     Caused by: com.liferay.oauth2.provider.exception.OAuth2ApplicationRedirectURISchemeException: everything
         [exec]     	at com.liferay.oauth2.provider.service.impl.OAuth2ApplicationLocalServiceImpl.validate(OAuth2ApplicationLocalServiceImpl.java:761)
         [exec]     	at com.liferay.oauth2.provider.service.impl.OAuth2ApplicationLocalServiceImpl.validate(OAuth2ApplicationLocalServiceImpl.java:668)
         [exec]     	at com.liferay.oauth2.provider.service.impl.OAuth2ApplicationLocalServiceImpl.addOAuth2Application(OAuth2ApplicationLocalServiceImpl.java:243)
         [exec]     	at sun.reflect.GeneratedMethodAccessor742.invoke(Unknown Source)
    

    Full console log:
    https://testray.liferay.com/reports/production/logs/test-1-15/1615036083470/test-portal-testsuite-upstream(master)/418/modules-integration-mysql57-jdk8/0/0/jenkins-console.txt.gz

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            carlos.sierra Carlos Sierra (Inactive)
            Reporter:
            joyce.wang Joyce Wang
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Carlos Sierra (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 weeks, 2 days ago

                Packages

                Version Package
                7.4.0 CE GA1
                Master