legacy-knowledge-base
公開されました Jul. 2, 2025

7.2 DXP Fix Pack 4以降、GraphQLでsiteIdを使用できない。

written-by

Alfonso Crisci

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 DXP 7.2 Fix Pack 4をインストールした後、 siteId を使用した GraphQL コールは動作しなくなります。

Environment

  • Liferay DXP 7.2 Fix Pack 4+の場合。

解決策

  • siteKey を代わりに使用します。

追加情報

  • この変更の理由は、 LPS-105237. 開発者は、 siteId と siteKey が互いに重複していることに気づきました。

    siteId は内部にあり、見つけるのがより複雑で、外部の開発者にそれを公開することに懸念があるため、2つの間で、 siteKey を維持することに決定した。 したがって、 siteKey の方が使いやすいので、代わりに使用する必要があります。
    クエリーは次のように構成することができます: http://localhost:8080/o/headless-delivery/v1.0/sites/Guest/structured-contents

did-this-article-resolve-your-issue

legacy-knowledge-base