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

NoSuchOAuth2ApplicationException when run testPreventCSRFUsingPKCE under SecurityTest

    Details

      Description

      Testray

      Error:

      [exec] com.liferay.oauth2.provider.client.test.SecurityTest > testPreventCSRFUsingPKCE STARTED
           [exec] 2021-03-06 14:10:29.123 ERROR [com.liferay.oauth2.provider.test-executor-thread][BaseTestPreparatorBundleActivator:462] com.liferay.oauth2.provider.exception.NoSuchOAuth2ApplicationException: No OAuth2Application exists with the primary key 120
           [exec] com.liferay.oauth2.provider.exception.NoSuchOAuth2ApplicationException: No OAuth2Application exists with the primary key 120
           [exec] 	at com.liferay.oauth2.provider.service.persistence.impl.OAuth2ApplicationPersistenceImpl.remove(OAuth2ApplicationPersistenceImpl.java:1421)
           [exec] 	at com.liferay.oauth2.provider.service.persistence.impl.OAuth2ApplicationPersistenceImpl.remove(OAuth2ApplicationPersistenceImpl.java:1393)
           [exec] 	at com.liferay.oauth2.provider.service.impl.OAuth2ApplicationLocalServiceImpl.deleteOAuth2Application(OAuth2ApplicationLocalServiceImpl.java:371)
           [exec] 	at sun.reflect.GeneratedMethodAccessor745.invoke(Unknown Source)
           [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [exec] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
           [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec] 	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
           [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec] 	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80)
           [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec] 	at com.sun.proxy.$Proxy1129.deleteOAuth2Application(Unknown Source)
           [exec] 	at com.liferay.oauth2.provider.client.test.BaseTestPreparatorBundleActivator.lambda$createOAuth2Application$4(BaseTestPreparatorBundleActivator.java:316)
           [exec] 	at com.liferay.oauth2.provider.client.test.BaseTestPreparatorBundleActivator._cleanUp(BaseTestPreparatorBundleActivator.java:459)
           [exec] 	at com.liferay.oauth2.provider.client.test.BaseTestPreparatorBundleActivator.stop(BaseTestPreparatorBundleActivator.java:99)
           [exec] 	at com.liferay.oauth2.provider.client.test.BaseClientTestCase.tearDown(BaseClientTestCase.java:100)
           [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)
      

      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