Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-1623

Cannot download documents from a Liferay 6.2 server with a context path different than ROOT

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Desktop-3.2.0 GA1
    • Desktop-3.2.1 GA2
    • General
    • 4
    • 6.2.x, 6.2.0 CE GA1, 6.2.10 EE GA1

    Description

      Cannot download documents from a Liferay 6.2 server with a context path different than ROOT

      Steps to reproduce

      1. Download a clean bundle of Liferay 6.2
      2. Rename LIFERAY_HOME/tomcat-7.0.62/webapps/ROOT folder to liferay
      3. Start Liferay and open http://localhost:8080/liferay
      4. Upload some files to DL
      5. Configure Liferay Sync to download all files of http://localhost:8080/liferay server
        • Expected behavior: All files are downloaded
        • Wrong behavior: No files are downloaded and 404 error are displayed in localhost_access_log.2016-xx-xx.txt log file

      The root cause of this issue is produced in sync-web requests: we are requesting /context-path/sync-web instead /sync-web

      127.0.0.1 - - [28/Jun/2016:13:47:50 +0000] "GET /liferay/sync-web/download/20329/f69d039d-5405-4fc9-b3e0-29fb38b5697a?version=1.0&versionId=23601 HTTP/1.1" 404 4546
      127.0.0.1 - - [28/Jun/2016:13:47:50 +0000] "POST /liferay/sync-web/download/zip HTTP/1.1" 404 4500
      

      Requests to JSON services are working fine:

      127.0.0.1 - - [28/Jun/2016:13:47:48 +0000] "POST /liferay/api/jsonws/sync-web.syncdlobject/get-sync-context HTTP/1.1" 200 1963
      127.0.0.1 - - [28/Jun/2016:13:47:48 +0000] "POST /liferay/api/jsonws/sync-web.syncdevice/register-sync-device HTTP/1.1" 200 250
      127.0.0.1 - - [28/Jun/2016:13:47:48 +0000] "POST /liferay/api/jsonws/sync-web.syncdlobject/get-user-sites-groups HTTP/1.1" 200 764
      

      Attachments

        Activity

          People

            michael.young Michael Young (Inactive)
            jorge.diaz Jorge Diaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 23 weeks, 4 days ago

              Packages

                Version Package
                Desktop-3.2.1 GA2