-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 M5
-
Fix Version/s: 7.0.0 M5
-
Component/s: Documents & Media, External Document Repositories > CMIS
-
Labels:None
-
Fix Priority:3
-
Git Pull Request:
Guest cannot view documents in an external repository. This was discovered while automating LPS-46810 - External repositories should be accessible to guest users.
Steps to reproduce:
Set the following in the portal-ext.properties file
session.store.password=true
dl.repository.guest.username=Administrator
dl.repository.guest.password=password
- Deploy the Sharepoint Hook.
- Navigate to Admin > Control Panel > Portal Settings > Authentication and change the authenticate type to "By Screen Name"
- Change the user screenname and password to a user on the Sharepoint Repository
- Log out of Liferay and Log back in using your screenname
- Add a page and the Documents and Media portlet
- Click on Add > Repository and add the Sharepoint repository
- Logout and have the Guest user navigate to the page and click on the Sharepoint respository
- Assert that the Guest user can view documents in the repository
Expected Result:
External repository contents are displayed to the guest user.
Actual Result:
A console error is generated and the external repository does not display to guest user.
19:17:30,392 INFO [elasticsearch[Sabreclaw][clusterService#updateTask][T#1]][metadata:314] [Sabreclaw] [20152] update_mapping [LiferayDocumentType] (dynamic) 19:20:37,018 ERROR [http-bio-9080-exec-356][IncludeTag:128] Current URL /web/guest/documents-and-media-page?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_20_struts_action=%2Fdocument_library%2Fview&_20_folderId=20608&p_p_ajax=0&p_p_isolated=1 generates exception: Null property value specified. javax.xml.rpc.JAXRPCException: Null property value specified. at org.apache.axis.client.Stub._setProperty(Stub.java:96) at com.liferay.sharepoint.connector.SharepointConnectionImpl.configureStub(SharepointConnectionImpl.java:350) at com.liferay.sharepoint.connector.SharepointConnectionImpl.initCopySoap(SharepointConnectionImpl.java:388) at com.liferay.sharepoint.connector.SharepointConnectionImpl.<init>(SharepointConnectionImpl.java:85) at com.liferay.sharepoint.connector.SharepointConnectionFactory.getInstance(SharepointConnectionFactory.java:28) at com.liferay.sharepoint.repository.SharepointWSRepository.buildConnection(SharepointWSRepository.java:159) at com.liferay.sharepoint.repository.SharepointWSRepository.buildConnection(SharepointWSRepository.java:74) at com.liferay.repository.external.cache.ConnectionCache.getConnection(ConnectionCache.java:64) at com.liferay.sharepoint.repository.SharepointWSRepository.getSharepointConnection(SharepointWSRepository.java:669) at com.liferay.sharepoint.repository.SharepointWSRepository.getExtRepositoryObjects(SharepointWSRepository.java:548) at com.liferay.repository.external.ExtRepositoryAdapter.getFoldersAndFileEntries(ExtRepositoryAdapter.java:531) at com.liferay.repository.external.ExtRepositoryAdapter.getFoldersAndFileEntriesCount(ExtRepositoryAdapter.java:564) at com.liferay.portal.kernel.repository.BaseRepositoryImpl.getFoldersAndFileEntriesAndFileShortcutsCount(BaseRepositoryImpl.java:341) at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67) at com.liferay.portal.repository.proxy.BaseRepositoryProxyBean.getFoldersAndFileEntriesAndFileShortcutsCount(BaseRepositoryProxyBean.java:510) at com.liferay.portal.repository.util.RepositoryWrapper.getFoldersAndFileEntriesAndFileShortcutsCount(RepositoryWrapper.java:454) at com.liferay.portal.repository.capabilities.CapabilityRepository.getFoldersAndFileEntriesAndFileShortcutsCount(CapabilityRepository.java:568) at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1609) at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1597) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:149)
Full console output is available here
Portal-ext used during testing is available here