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

dxp-7 へのパッチ適用後にヘッドレス配信 API が失敗する

written-by

Madeleine Clay

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

問題

  • dxp-7 へのパッチ適用後、ヘッドレス配信 API の cURL コマンド
    '/o/headless-delivery/v1.0/structured-contents/{journalArticleResourcePrimKey}/rendered-content/{templateKey}'
    は 500 のステータス コード応答を返し、失敗しています。

Environment

  • DXP 7.2

解決策

  • dxp-7、特に RenderedContentValueUtil.javaでヘッドレス配信 API に導入された変更により、次の cURL コマンドは、 templateIdの代わりに templateKey を含む renderContentURL 値を返します。
    '/o/headless-delivery/v1.0/sites/{siteId}/structured-contents/by-key/{key}'
  • この問題の修正は、 liferay-fixpack-dxp-11-7210 でリリースされた LPS-128308で説明されています。
  • または、フィックスパックの変更を実装せずに問題を解決するには、次のようにクエリで templateKey を templateId に置き換えることができます。
    '/o/headless-delivery/v1.0/structured-contents/{journalArticleResourcePrimKey}/rendered-content/{templateId}'

追加情報

  • Liferay DXP 7.2 Fix Pack 7 によって導入された変更の詳細については、 dxp-7 Changelog を参照してください。
  • ヘッドレス レスト APIの詳細については、この記事をお読みください。

did-this-article-resolve-your-issue

legacy-knowledge-base