-
Type:
Regression Bug
-
Status: Verified
-
Resolution: Unresolved
-
Affects Version/s: 7.0.X
-
Fix Version/s: None
-
Component/s: External Document Repositories > Sharepoint
-
Labels:
-
Fix Priority:5
-
Last Working Version:
-
QA Test Name:
-
QA Test Score:5
Steps to reproduce:
- Deploy Sharepoint REST modules (document-library-authorization-api, document-library-repository-external, document-library-web, sharepoint-repository, sharepoint-oauth2-api, sharepoint-oauth2-service)
- Create Sharepoint application
- Enable HTTPS support in Tomcat
- Configure Sharepoint OAuth2 in System Settings
- Add new Sharepoint REST repository
- Using https, access new Sharepoint repository
- Assert user is redirected to the Sharepoint authorization page
- 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)