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

DM content container broken after redirected from sharepoint authorization page

    Details

    • Fix Priority:
      5
    • Last Working Version:

      Description

      Steps to reproduce:

      1. Deploy Sharepoint REST modules (document-library-authorization-api, document-library-repository-external, document-library-web, sharepoint-repository, sharepoint-oauth2-api, sharepoint-oauth2-service)
      2. Create Sharepoint application
      3. Enable HTTPS support in Tomcat
      4. Configure Sharepoint OAuth2 in System Settings
      5. Add new Sharepoint REST repository
      6. Using https, access new Sharepoint repository
      7. Assert user is redirected to the Sharepoint authorization page
      8. Click on Trust It

      Expected result:
      DM content container should display properly after redirected from sharepoint authorization page.

      Actual result:
      DM content container broken. The following errors showed up in the console:

      [exec] 12:22:01,641 ERROR [http-bio-8443-exec-1][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fview_folder&_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect=https%3A%2F%2Flocalhost%3A8443%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_document_library_web_portlet_DLAdminPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName%3D%252Fdocument_library%252Fview%26_com_liferay_document_library_web_portlet_DLAdminPortlet_displayStyle%3Ddescriptive%26_com_liferay_document_library_web_portlet_DLAdminPortlet_navigation%3Dhome%26_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId%3D0&_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId=36258 generates exception: java.lang.NullPointerException
           [exec] java.lang.NullPointerException
           [exec] 	at com.liferay.document.library.internal.asset.categories.validator.ExternalRepositoryAssetEntryValidatorExclusionRule.isValidationExcluded(ExternalRepositoryAssetEntryValidatorExclusionRule.java:56)
           [exec] 	at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.validate(AssetEntryLocalServiceImpl.java:1016)
           [exec] 	at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.updateEntry(AssetEntryLocalServiceImpl.java:665)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
           [exec] 	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
           [exec] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
           [exec] 	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
           [exec] 	at com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl.checkAssetEntry(DLAppHelperLocalServiceImpl.java:158)
           [exec] 	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
           [exec] 	at com.liferay.document.library.kernel.service.DLAppHelperLocalServiceWrapper.checkAssetEntry(DLAppHelperLocalServiceWrapper.java:62)
           [exec] 	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
           [exec] 	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
           [exec] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
           [exec] 	at com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
           [exec] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            joyce.wang Joyce Wang
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package