-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 7.0.0 DXP FP10
-
Fix Version/s: None
-
Component/s: Legacy, Legacy > API
-
Fix Priority:5
Description
Remotely accessing Liferay Services using Liferay Tunnel Servlet only works for portal-core services and not services originating from modules.
Steps to Reproduce
- Setup two Liferay DXP instances
- Client Instance
- Remote Instance
- Add these portal properties to both instances
tunnel.servlet.hosts.allowed=CLIENT_INSTANCE_IP tunnel.servlet.https.required=false tunneling.servlet.shared.secret=1234567890123456
- Make sure to replace CLIENT_INSTANCE_IP with the Client Instance's actual IP Address
- Ex: tunnel.servlet.hosts.allowed=172.25.0.5
- Make sure to replace CLIENT_INSTANCE_IP with the Client Instance's actual IP Address
- Startup Both Instances
- Using Remote Instance:
- Navigate to Control Panel --> System Settings
- Search for tunnel
- Select 'Tunnel Auth Verifiers'
- Select '/api/liferay/do'
- Append Client Instance's IP Address to Hosts allowed field
- Ex: 127.0.0.1,SERVER_IP,172.25.0.5
- Update
- Using Client Instance:
- Navigate to Control Panel --> Server Administration --> Script
- Select Language Groovy
- See attached groovy script: test_tunnel.groovy
- Update the fields under Remote Settings to reflect your test Remote Instance
- Copy the content inside the script into the Script field
- Execute the script
Expected Results: Script should run successfully for both UserServiceUtil and JournalArticleServiceUtil.
Actual Results: Script does not successfully return method invoked for JournalArticleServiceUtil. ClassNotFoundException is observed on the remote server.
- is related to
-
LPS-59213 Expose the Services API through our custom Http Tunnel Support
-
- Closed
-