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

カスタム ウイルス対策スキャナーを実装する方法

written-by

Sorin Pop

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

問題

Environment

  • DXP 7.3

解決策

  • 戦争フックを作成する必要があります (戦争フックに関する記事は次のとおりです: https://help.liferay.com/hc/en-us/articles/360018170611-WAR-Hook-Template)
  • portal-ext.properties ファイルにウイルス対策固有のプロパティを入れないでください (必要なプロパティは war-hook モジュールに含まれます)。
  • 次の手順でテストできる、そのような戦争フックの概念実証が添付されていることを確認してください。

1. 7.3 fp1 サーバーを起動し、完全に起動するまで待ちます。
2. my-war-hook.war アプリを deploy フォルダーにコピーします。
3. サーバーにログインし、ファイルをドキュメントやメディアにアップロードしてみてください。
結果:
コンソール ログに次のように表示されます。

2021-06-10 18:09:05.396 INFO  [fileinstall-directory-watcher][BundleStartStopLogger:46] STARTED my-war-hook_7.3.10.1 [1651]
* antivirus scanner works: This is the scan file method *

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base