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

There is a problem when you try to use "Checkin" action in Office365 documents.

Details

    Description

      If you use the menu option "Checkin" in an Office 365 document, the document checkin is not done correctly. In the log file, a Graph API error appears. The error is below.

      I attached a video with the problem's reproduction.

      Steps to reproduce:

      1. Create a new Office 365 Word document.
      2. In the document list interface, click the "edit in Office 365" menu option. An Office 365 editor interface will be open.
      3. Close the document in Office 365 interface.
      4. In the document list interface, click the "Checkin" menu option.

       Expected result:

      The checking of the Office 365 document is done, and the document content is
      downloaded.

       Actual result:

      The checking does not finalize correctly, and an error occurs.

       

      Log error:

      2021-04-08 16:05:33.727 ERROR [http-nio-8080-exec-9][PortletServlet:119] javax.portlet.PortletException: com.microsoft.graph.core.ClientException: Error during http request
      javax.portlet.PortletException: com.microsoft.graph.core.ClientException: Error during http request
              at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:65)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:357)
              at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:88)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:247)
              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:733)
      .....................................
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:887)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1684)
              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.microsoft.graph.core.ClientException: Error during http request
              at com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:421)
              at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:204)
              at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:184)
              at com.microsoft.graph.http.BaseStreamRequest.send(BaseStreamRequest.java:85)
              at com.microsoft.graph.requests.extensions.DriveItemStreamRequest.get(DriveItemStreamRequest.java:55)
              at com.liferay.document.library.opener.onedrive.web.internal.DLOpenerOneDriveManager._getContentFile(DLOpenerOneDriveManager.java:318)
              at com.liferay.document.library.opener.onedrive.web.internal.DLOpenerOneDriveManager.lambda$getDLOpenerOneDriveFileReference$5(DLOpenerOneDriveManager.java:164)
              at com.liferay.document.library.opener.onedrive.web.internal.DLOpenerOneDriveFileReference.getContentFile(DLOpenerOneDriveFileReference.java:87)
              at com.liferay.document.library.opener.onedrive.web.internal.service.DLOpenerOneDriveDLAppServiceWrapper._updateFileEntryFromOneDrive(DLOpenerOneDriveDLAppServiceWrapper.java:177)
              at com.liferay.document.library.opener.onedrive.web.internal.service.DLOpenerOneDriveDLAppServiceWrapper.checkInFileEntry(DLOpenerOneDriveDLAppServiceWrapper.java:121)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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.$Proxy781.checkInFileEntry(Unknown Source)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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.$Proxy180.checkInFileEntry(Unknown Source)
              at com.liferay.document.library.opener.onedrive.web.internal.portlet.action.CheckInInOneDriveMVCActionCommand._executeCommand(CheckInInOneDriveMVCActionCommand.java:77)
              at com.liferay.document.library.opener.onedrive.web.internal.oauth.OAuth2ControllerFactory._getOAuth2Result(OAuth2ControllerFactory.java:88)
              at com.liferay.document.library.opener.onedrive.web.internal.oauth.OAuth2ControllerFactory.access$000(OAuth2ControllerFactory.java:54)
              at com.liferay.document.library.opener.onedrive.web.internal.oauth.OAuth2ControllerFactory$RedirectingOAuth2Controller.execute(OAuth2ControllerFactory.java:259)
              at com.liferay.document.library.opener.onedrive.web.internal.portlet.action.CheckInInOneDriveMVCActionCommand.doProcessAction(CheckInInOneDriveMVCActionCommand.java:59)
              at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:57)
              ... 146 more
        Caused by: java.lang.NullPointerException
              at com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:393)
              ... 180 more
      
      

      Attachments

        Activity

          People

            yvonne.han Yvonne Han
            david.tello David Tello
            Austin Chiang Austin Chiang
            David Tello David Tello
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 33 weeks, 3 days ago

              Packages

                Version Package
                7.2.10 DXP FP13
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                7.4.1 CE GA2 DXP 7,4
                7.4.13 DXP GA1
                Master