legacy-knowledge-base
公開されました Sep. 10, 2025

Workflow Task URL for Unauthorized User Returns 404 Instead of Login Page

written-by

Lili Gyöngyi Fülöp

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

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:

  1. 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:
    1. Navigate to Control Panel > System Settings > Login.
    2. Check the 'Prompt Enabled' checkbox.
    3. Click Save.
  2. Next, to resolve the 404 error specifically for /user/... URLs, add the following property to the portal-ext.properties file:

    layout.user.access.via.plid.enabled=true
  3. Restart the server for the changes to take effect.

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base