Issue
- When an unauthorized user attempts to access a workflow task URL, they are shown a 404 error page instead of being redirected to the login page.
- This issue specifically occurs when the URL follows the
/user/{screenName}/...pattern.
Environment
- Liferay DXP 7.4 u84+
Resolution
To resolve this issue, two configurations are necessary:
- First, ensure that the login prompt is enabled for private pages. This can be configured at the System, Instance, or Site level. For a system-wide setting:
- Navigate to Control Panel > System Settings > Login.
- Check the 'Prompt Enabled' checkbox.
- Click Save.
-
Next, to resolve the 404 error specifically for
/user/...URLs, add the following property to theportal-ext.propertiesfile:layout.user.access.via.plid.enabled=true
- Restart the server for the changes to take effect.