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

非標準のドキュメント・タイプのドキュメントを追加する際に、不正なFieldReferenceが使用されました。

written-by

Marcos da Silva Xavier

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

問題

  • ドキュメントをアップロードするときに、addFileEntry APIに渡されるddmFormValuesMapのfieldReferenceが間違っていました。 fieldReference の代わりに name が設定される。

    fieldReferenceとnameは(デフォルトでは)同じであることが多いが、必ずしもそうではない。 ユーザーは、カスタムコードからフィールドを参照しやすくするために、意図的にfieldReferenceをより理解しやすい値に設定することができます(実際そうしています)。

    このバグはバニラのLiferayではユーザーの目に見える影響はありませんが、addFileEntry APIを拡張したカスタムコードを使いたいユーザーには大きな影響があります。

Environment

  • DXP 7.4

解決策

  • この問題は LPS-178838 によって解決されましたので、LiferayサポートにHotfixをリクエストしてください。

did-this-article-resolve-your-issue

legacy-knowledge-base