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

Unable to sync when there is a redirect

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1 GA1
    • Fix Version/s: 1.2.0 GA1
    • Component/s: General
    • Labels:
      None

      Description

      http://in.liferay.com is redirecting now to https://in.liferay.com ("httpS://", it requires SSL now).

      This creates some issues on Sync because it doesn't know what to do when a redirect happens. I'm getting this few times and Sync can't stop the Sync process:

      Caused by: org.apache.http.client.CircularRedirectException: Circular redirect to 'https://in.liferay.com/api/secure/jsonws/dlsync/get-dl-sync-update/company-id/10132/repository-id/112442/last-access-date/1380552804000'
      at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:183)
      at org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:217)
      at org.apache.http.impl.client.DefaultRequestDirector.handleResponse(DefaultRequestDirector.java:1105)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:548)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)

      In order to reproduce it you have to connect to http://in.liferay.com without the "S" on the http prefix.

      We had a lot of issues on Sync mobile because all our requests uses the POST method and our http client library can only handle redirects automatically if it's a GET.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 46 weeks, 2 days ago

                Packages

                Version Package
                1.2.0 GA1