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

/api/jsonws ページで指定されたパスを使用すると、エンドポイントが機能しません

written-by

Solyom Nagy-Györkös

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 で /api/jsonws ページを開き、名前空間を持つエンドポイントを使用したい場合、何も起こりません
  • これは、「ポータル」のコンテキスト名の下にないすべてのエンドポイントが名前空間化されていることを意味します。次に例を示します。
    • 名前空間:
      /カレンダー。calendarbooking/move-calendar-booking-to-trash
    • 名前空間なし:
      /announcementsdelivery/update-delivery
  • 以下のいずれかのプロパティで許可/不許可の Web サービスを制御する JSONWS API では、管理者にも表示されず、使用できません
  • jsonws.web.service.paths.includes=/calendar.calendarbooking/delete-calendar-booking
    jsonws.web.service.paths.excludes=/calendar.calendarbooking/get-calendar-booking-instance

Environment

  • DXP 7.3 U18未満
  • DXP 7.4 U54 未満

解決策

  • これは LPS-133357によって修正された既知の動作です。問題を解決するには、DXP 7.3-U18 または DXP 7.4-U54 に更新できます。
  • それができない場合は、プロパティの名前空間付き JSON パスを/calendar.calendarbooking/move-calendar-booking-to-trashからcalendarbooking.calendarbooking/move-calendar-booking-to に変更するという回避策を使用できます。 -ゴミ箱
  • 変更されたパスにはスラッシュがなく、名前空間の複製は正しく機能するために必須であることに注意してください。

追加情報

  • プロパティjsonws.web.service.api.discoverableはデフォルトで有効になっています。 このプロパティが明示的にtrueに設定されている場合、API の検出可能性は、ポータル自体から直接派生したものに制限されると想定しています: JSON Web サービスの構成.
did-this-article-resolve-your-issue

legacy-knowledge-base