Details

      Description

      Steps to reproduce:

      1. Configuration for GoogleDrive credentials.
      2. Navigate to DM to add a Google Doc and leave as the default title(Untitled)
      3. Edit this Google doc by Edit in Google Doc
      4. Update the google doc title to New Name
      5. Click Save and Reture To Liferay DXP

      Expected results: This Google doc is renamed as New Name.
      Actual results: This Google doc is not renamed as New Name and the status is Draft, error throws on the console:

      2020-08-31 06:06:09.813 ERROR [http-nio-8080-exec-7][PortletServlet:119] javax.portlet.PortletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"1","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"2.0"} is stale in comparison to {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"2","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"PWC"}
      javax.portlet.PortletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"1","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"2.0"} is stale in comparison to {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"2","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"PWC"}
              at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:69)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:359)
              at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:89)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:249)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
              at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
              at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
              at com.liferay.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:571)
              at com.liferay.portlet.internal.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:611)
              at com.liferay.portlet.internal.InvokerPortletImpl.processAction(InvokerPortletImpl.java:286)
              at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.processAction(MonitoringInvokerPortlet.java:195)
              at com.liferay.portlet.internal.PortletContainerImpl._processAction(PortletContainerImpl.java:521)
              at com.liferay.portlet.internal.PortletContainerImpl.lambda$processAction$0(PortletContainerImpl.java:148)
              at com.liferay.portlet.internal.PortletContainerImpl._preserveGroupIds(PortletContainerImpl.java:425)
              at com.liferay.portlet.internal.PortletContainerImpl.processAction(PortletContainerImpl.java:141)
              at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:92)
              at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:72)
              at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:117)
              at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:347)
              at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:170)
              at com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:408)
              at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
              at com.liferay.portal.internal.servlet.MainServlet.doPost(MainServlet.java:214)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
              at com.liferay.portal.internal.servlet.MainServlet.service(MainServlet.java:621)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124)
              at com.liferay.portal.remote.cors.internal.servlet.filter.PortalCORSServletFilter.processFilter(PortalCORSServletFilter.java:233)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:62)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:183)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
              at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:475)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:99)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124)
              at com.liferay.portal.remote.cors.internal.servlet.filter.PortalCORSServletFilter.processFilter(PortalCORSServletFilter.java:233)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:368)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:62)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:87)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:265)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:248)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
              at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:183)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
              at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
              at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
              at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
              at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
              at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
              at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:175)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:175)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"1","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"2.0"} is stale in comparison to {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"2","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"PWC"}
              at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:565)
              at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileVersionPersistenceImpl.updateImpl(DLFileVersionPersistenceImpl.java:6082)
              at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileVersionPersistenceImpl.updateImpl(DLFileVersionPersistenceImpl.java:79)
              at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:677)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkInFileEntry(DLFileEntryLocalServiceImpl.java:358)
              at sun.reflect.GeneratedMethodAccessor750.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy133.checkInFileEntry(Unknown Source)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.checkInFileEntry(DLFileEntryServiceImpl.java:115)
              at sun.reflect.GeneratedMethodAccessor749.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy256.checkInFileEntry(Unknown Source)
              at com.liferay.portal.repository.liferayrepository.LiferayRepository.checkInFileEntry(LiferayRepository.java:203)
              at com.liferay.portal.repository.util.RepositoryWrapper.checkInFileEntry(RepositoryWrapper.java:104)
              at com.liferay.portal.repository.util.RepositoryWrapper.checkInFileEntry(RepositoryWrapper.java:104)
              at com.liferay.document.library.internal.repository.capabilities.LiferayVersioningCapability$2.checkInFileEntry(LiferayVersioningCapability.java:134)
              at com.liferay.portal.repository.util.RepositoryWrapper.checkInFileEntry(RepositoryWrapper.java:104)
              at com.liferay.portal.repository.util.RepositoryWrapper.checkInFileEntry(RepositoryWrapper.java:104)
              at com.liferay.portal.repository.liferayrepository.LiferayWorkflowRepositoryWrapper.checkInFileEntry(LiferayWorkflowRepositoryWrapper.java:93)
              at com.liferay.portal.repository.util.RepositoryWrapper.checkInFileEntry(RepositoryWrapper.java:104)
              at com.liferay.portal.repository.liferayrepository.LiferayProcessorRepositoryWrapper.checkInFileEntry(LiferayProcessorRepositoryWrapper.java:96)
              at com.liferay.portal.repository.capabilities.CapabilityRepository.checkInFileEntry(CapabilityRepository.java:153)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.checkInFileEntry(DLAppServiceImpl.java:501)
              at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.sun.proxy.$Proxy459.checkInFileEntry(Unknown Source)
              at com.liferay.document.library.kernel.service.DLAppServiceWrapper.checkInFileEntry(DLAppServiceWrapper.java:338)
              at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.sun.proxy.$Proxy460.checkInFileEntry(Unknown Source)
              at com.liferay.document.library.kernel.service.DLAppServiceWrapper.checkInFileEntry(DLAppServiceWrapper.java:338)
              at com.liferay.document.library.opener.google.drive.web.internal.service.DLOpenerGoogleDriveDLAppServiceWrapper.checkInFileEntry(DLOpenerGoogleDriveDLAppServiceWrapper.java:125)
              at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.sun.proxy.$Proxy460.checkInFileEntry(Unknown Source)
              at com.liferay.document.library.kernel.service.DLAppServiceWrapper.checkInFileEntry(DLAppServiceWrapper.java:338)
              at com.liferay.document.library.opener.onedrive.web.internal.service.DLOpenerOneDriveDLAppServiceWrapper.checkInFileEntry(DLOpenerOneDriveDLAppServiceWrapper.java:114)
              at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.sun.proxy.$Proxy460.checkInFileEntry(Unknown Source)
              at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy161.checkInFileEntry(Unknown Source)
              at com.liferay.document.library.opener.google.drive.web.internal.portlet.action.EditInGoogleDriveMVCActionCommand._executeCommand(EditInGoogleDriveMVCActionCommand.java:172)
              at com.liferay.document.library.opener.google.drive.web.internal.portlet.action.EditInGoogleDriveMVCActionCommand.doProcessAction(EditInGoogleDriveMVCActionCommand.java:79)
              at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:61)
              ... 159 more
      Caused by: com.liferay.portal.kernel.dao.orm.ORMException: {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"1","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"2.0"} is stale in comparison to {"changeLog":"","checksum":"KKdFZmBXNAA9Bgxx8Akgmz1w2XU=","companyId":"20097","createDate":1598853753301,"ctCollectionId":"0","description":"","extension":"docx","extraSettings":"","fileEntryId":"38382","fileEntryTypeId":"0","fileName":"test again.docx","fileVersionId":"38398","folderId":"0","groupId":"20121","lastPublishDate":null,"mimeType":"application\/vnd.openxmlformats-officedocument.wordprocessingml.document","modifiedDate":1598853969804,"mvccVersion":"2","repositoryId":"20121","size":"6062","status":2,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1598853969790,"title":"test again","treePath":"\/","userId":"20125","userName":"Test Test","uuid":"902f08fb-7aea-26ec-7f64-9d82b28f1399","version":"PWC"}
              at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:67)
              at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:329)
              at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileVersionPersistenceImpl.updateImpl(DLFileVersionPersistenceImpl.java:6078)
              ... 236 more
      Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.liferay.portlet.documentlibrary.model.impl.DLFileVersionImpl#38398]
              at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
              at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
              at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
              at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
              at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
              at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
              at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:326)
              ... 237 more
      

      NOTE: Only Google Doc has this issue, works as expected for Google Sheet and Google Slide.
      If you rename the doc when you add it for the first time, it works fine.

        Attachments

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            yvonne.han Yvonne Han
            Participants of an Issue:
            Recent user:
            Yvonne Han
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 weeks ago

                Packages

                Version Package
                7.3.X
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master