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

testResolveModificationConflictMax fails on Oracle 19.3 due to ORA-00979: not a GROUP BY expression

    Details

      Description

           [exec] com.liferay.change.tracking.internal.conflict.test.CTColumnResolutionMaxTest > testResolveModificationConflictMax FAILED
           [exec]     com.liferay.portal.kernel.dao.orm.ORMException: java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression
           [exec] 
           [exec]     	at com.liferay.change.tracking.internal.conflict.CTConflictChecker._resolveModificationConflicts(CTConflictChecker.java:827)
           [exec]     	at com.liferay.change.tracking.internal.conflict.CTConflictChecker._checkModifications(CTConflictChecker.java:400)
           [exec]     	at com.liferay.change.tracking.internal.conflict.CTConflictChecker._check(CTConflictChecker.java:146)
           [exec]     	at com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl.updateWithUnsafeFunction(DLFolderLocalServiceBaseImpl.java:1541)
           [exec]     	at sun.reflect.GeneratedMethodAccessor1098.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.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec]     	at com.sun.proxy.$Proxy83.updateWithUnsafeFunction(Unknown Source)
           [exec]     	at com.liferay.change.tracking.internal.conflict.CTConflictChecker.check(CTConflictChecker.java:117)
           [exec]     	at com.liferay.change.tracking.service.impl.CTCollectionLocalServiceImpl.checkConflicts(CTCollectionLocalServiceImpl.java:196)
           [exec]     	at sun.reflect.GeneratedMethodAccessor1195.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.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.$Proxy755.checkConflicts(Unknown Source)
           [exec]     	at com.liferay.change.tracking.internal.conflict.test.CTColumnResolutionMaxTest.testResolveModificationConflictMax(CTColumnResolutionMaxTest.java:99)
           [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 com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [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 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: java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression
           [exec] 
           [exec]     	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
           [exec]     	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461)
           [exec]     	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1104)
           [exec]     	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:550)
           [exec]     	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:268)
           [exec]     	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:655)
           [exec]     	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:270)
           [exec]     	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:91)
           [exec]     	at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
           [exec]     	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1205)
           [exec]     	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3666)
           [exec]     	at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1426)
           [exec]     	at oracle.jdbc.driver.OraclePreparedStatement.executeLargeUpdate(OraclePreparedStatement.java:3756)
           [exec]     	at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3736)
           [exec]     	at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1063)
           [exec]     	at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
           [exec]     	at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
           [exec]     	at com.liferay.change.tracking.internal.CTRowUtil.copyCTRows(CTRowUtil.java:123)
           [exec]     	at com.liferay.change.tracking.internal.conflict.CTConflictChecker._resolveModificationConflicts(CTConflictChecker.java:824)
           [exec]     	... 51 more
           [exec]     Caused by: Error : 979, Position : 345, Sql = insert into DLFolder (statusDate, parentFolderId, groupId, description, defaultFileEntryTypeId, hidden_, lastPublishDate, ctCollectionId, createDate, statusByUserId, mountPoint, uuid_, userName, userId, folderId, lastPostDate, companyId, restrictionType, modifiedDate, repositoryId, name, statusByUserName, mvccVersion, treePath, status) select publication.statusDate, publication.parentFolderId, publication.groupId, publication.description, publication.defaultFileEntryTypeId, publication.hidden_, publication.lastPublishDate, 107 as ctCollectionId, publication.createDate, publication.statusByUserId, publication.mountPoint, publication.uuid_, publication.userName, publication.userId, publication.folderId, max(composite.lastPostDate), publication.companyId, publication.restrictionType, production.modifiedDate, publication.repositoryId, publication.name, publication.statusByUserName, (publication.mvccVersion + 1) mvccVersion, publication.treePath, publication.status from DLFolder production inner join DLFolder publication on production.folderId = publication.folderId inner join DLFolder composite on composite.folderId = production.folderId where composite.ctCollectionId in (0, -107) and publication.ctCollectionId = -107 and production.ctCollectionId = 0 group by composite.folderId, OriginalSql = insert into DLFolder (statusDate, parentFolderId, groupId, description, defaultFileEntryTypeId, hidden_, lastPublishDate, ctCollectionId, createDate, statusByUserId, mountPoint, uuid_, userName, userId, folderId, lastPostDate, companyId, restrictionType, modifiedDate, repositoryId, name, statusByUserName, mvccVersion, treePath, status) select publication.statusDate, publication.parentFolderId, publication.groupId, publication.description, publication.defaultFileEntryTypeId, publication.hidden_, publication.lastPublishDate, 107 as ctCollectionId, publication.createDate, publication.statusByUserId, publication.mountPoint, publication.uuid_, publication.userName, publication.userId, publication.folderId, max(composite.lastPostDate), publication.companyId, publication.restrictionType, production.modifiedDate, publication.repositoryId, publication.name, publication.statusByUserName, (publication.mvccVersion + 1) mvccVersion, publication.treePath, publication.status from DLFolder production inner join DLFolder publication on production.folderId = publication.folderId inner join DLFolder composite on composite.folderId = production.folderId where composite.ctCollectionId in (0, -107) and publication.ctCollectionId = -107 and production.ctCollectionId = 0 group by composite.folderId, Error Msg = ORA-00979: not a GROUP BY expression
           [exec] 
           [exec]     	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:513)
           [exec]     	... 69 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              linda.sui Linda Sui
              Participants of an Issue:
              Recent user:
              Rafaela Nascimento
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 weeks, 5 days ago

                  Packages

                  Version Package
                  7.4.2 CE GA3 DXP 7,4
                  Master