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

タグ名に特殊文字を使用すると AssetTagException が発生する

written-by

Alexandra Rujzam

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

問題

AssetTagException は、タグ名に特殊文字が使用されている場合、記事が公開されるときにスローされます。

2020-06-23 07:16:18.168 ERROR [http-nio-10.155.2.197-443-exec-4][PortletServlet:112] javax.portlet.PortletException: com.liferay.asset.kernel.exception.As setTagException: & ' @ \ ] } : , = > / < _ [ { % | + # ` ? " _ ; / * ~ [Sanitized]

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

解決策

これは予想される動作と見なすことができます。 設計上、タグ名に次の無効な文字を含めることはできません: & ' @ \ ] } : , = > / < [ { % | + # ` ? " ; / * ~ は、インデックス作成中またはデータベース クエリの実行中に操作を妨げるためです。 そのため、可能であれば、タグ名にそのような文字を追加することは避けてください。

did-this-article-resolve-your-issue

legacy-knowledge-base