Legacy Knowledge Base
Published Sep. 10, 2025

"Detected reserved friendly URL" error during upgrade

Written By

Rafael Regner

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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

Did this article resolve your issue ?

Legacy Knowledge Base