Issue
Unable to connect to Liferay Sync using Liferay Sync Connector 6.0.0. There were no errors visible in the Liferay logs, but upon reviewing the Liferay Sync client application logs, the following error was observed:
"This server is not compatible with Liferay Sync"
Environment
-
Liferay Sync Connector 6.0.0
-
Liferay Sync Client Application
Resolution
The issue could be caused by missing API access permissions. To resolve this, it is necessary to allow communication over several specific APIs. Below is the list of required APIs that need to be accessible for Liferay Sync to function properly:
/sync.syncdlobject/get-sync-context/region/get-regions/api/jsonws/sync-web.syncdlobject/get-sync-context/api/jsonws/sync-web.syncdlobject/get-user-sites-groups/api/jsonws/sync-web.syncdlobject/get-all-folder-sync-dl-objects/api/jsonws/sync.syncdlobject/get-sync-context/api/jsonws/sync.syncdlobject/get-latest-modified-time/api/jsonws/sync.syncdlobject/get-user-sites-groups/company/get-companies/group/get-user-sites-groups/group/get-user-sites-groups-count/layout/get-control-panel-layout-plid/portal/get-build-number/portal/get-version/theme/get-war-themes/user/get-current-user/country/get-countries
By ensuring that these APIs are accessible, the Liferay Sync client should be able to connect successfully to the Liferay Sync Connector.