Issue
- During Liferay upgrade I get the following error related to friendly URL:
Class name: com.liferay.portal.verify.VerifyLayout
1 occurrences of the following errors: Detected reserved friendly URL "/apirila" Update the friendly URL for the layout with PLID 3459437. - Apirila in the Basque language means April.
- Why does this error occur?
Environment
- Liferay DXP 7.4
Resolution
-
The logic that is triggered in the verify layout responds to the values of the
layout.friendly.url.keywords
property:layout.friendly.url.keywords=\ _vti_*,\ a,\ api*,\ c,\ combo,\ delegate,\ dtd,\ elqNow,\ facebook,\ google_gadget,\ group,\ html,\ image,\ language,\ lucene,\ netvibes,\ o,\ osgi,\ page,\ pbhs,\ poller,\ private,\ public,\ rest,\ robots.txt,\ sharepoint*,\ sitemap.xml,\ sprite,\ tunnel-web,\ user,\ wap,\ web,\ webdav*,\ widget*,\ xmlrpc
- One of these values is
api*
. In this case, the system understands that/apirila
is a reserved word. - You can customize this property by removing the
api*
, and/apirila
would already be valid. - If you find that this setting allows the creation of unwanted URLs (for example
api
or similar), you should adjust this value so that it does not match valid URLs.
Additional Information
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In