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

External Repositories should be accessible to guest users

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 M5
    • Fix Version/s: 7.0.0 M5
    • Component/s: DM, DM > Connectors > CMIS
    • Labels:
      None

      Description

      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
      
      1. Deploy the Sharepoint Hook.
      2. Navigate to Admin > Control Panel > Portal Settings > Authentication and change the authenticate type to "By Screen Name"
      3. Change the user screenname and password to a user on the Sharepoint Repository
      4. Log out of Liferay and Log back in using your screenname
      5. Add a page and the Documents and Media portlet
      6. Click on Add > Repository and add the Sharepoint repository
      7. Logout and have the Guest user navigate to the page and click on the Sharepoint respository
      8. 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

        Attachments

          Activity

            People

            • Assignee:
              simon.park Simon Park (Inactive)
              Reporter:
              simon.park Simon Park (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 31 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 M5