Securityフィールドがnullにセットされたアイテムをインデックス化しようとすると警告が発生する


概要

Securityフィールドがnullにセットされた場合(例えば、APIitem[FieldIDs.Security] = nullを使用した場合など)、検索インデックスの更新中に警告が発生する場合があります。

 WARN  ItemSecurityChangeDetector: Error during parsing the rule
Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: serializedData
Source: Sitecore.Kernel
   at Sitecore.Diagnostics.Assert.ArgumentNotNull(Object argument, String argumentName)
   at Sitecore.Security.AccessControl.AccessRuleSerializer.Deserialize(String serializedData)
   at Sitecore.ContentSearch.Security.ItemSecurityChangeDetector.TryDeserializeAccessRules(String serializedRules, AccessRuleCollection& result)
WARN ItemSecurityChangeDetector: Can't parse new value of the '{AAA8A2A5-A3CF-4876-A876-8A69A2876098}' field

: これらの警告は、検索の挙動には影響しないため、無視していただいても問題ありません。

解決策

この問題を解決するには、以下のオプションのいずれかを検討してください。