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

SharepointServlet improperly handling spaces in folders

    Details

      Description

      To reproduce:

      1. Add a "Folder A" (with a space) into the Document Library, and add a file "Test File.docx" (with a space) into that folder.
      2. In Windows XP, select "Add Network Place Wizard" and enter the URL: http://localhost:8080/api/secure/webdav/ and login with credentials.
      3. Navigate through folders Guest, document_library, Folder A. Error: Folder will be empty.
      4. Rename "Folder A" to "Folder B" and you will get the following stack trace:
        16:52:33,802 ERROR [SharepointServlet:121] com.liferay.portal.sharepoint.SharepointException: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 0
        com.liferay.portal.sharepoint.SharepointException: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 0
        	at com.liferay.portal.sharepoint.methods.BaseMethodImpl.process(BaseMethodImpl.java:45)
        	at com.liferay.portal.sharepoint.SharepointServlet.doPost(SharepointServlet.java:110)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
        	at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
        	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:273)
        	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:93)
        ...
        

      It is perhaps also worth noting that site folders are inconsistent with all other OS's (named "Test Test [10196]" vs. "test").

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 11 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2