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

アップグレード中に "Detected reserved friendly URL "エラーが発生しました。

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

learn-legacy-article-disclaimer-text

問題

  • Liferayのアップグレード中に、フレンドリー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.
  • バスク語でアピリラとは4月を意味します。
  • なぜこのようなエラーが発生するのでしょうか?

Environment

  • Liferay DXP 7.4

解決策

  • 検証レイアウトでトリガーされるロジックは、 layout.friendly.url.keywords プロパティの値に応答します:

     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
  • これらの値の一つは api*である。 この場合、システムは /apirila が予約語であることを理解する。
  • このプロパティをカスタマイズするには、 api*を削除します。 /apirila はすでに有効です。
  • この設定により、不要なURL(例えば、 api など)が作成されてしまう場合は、この値を調整し、有効なURLと一致しないようにしてください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base