"Empty role name in AccessRuleSerializer" error in CD server logs


Description

Content Delivery (CD) server logs might be flooded with the following messages:

Empty role name in AccessRuleSerializer

The message is logged when the security field is broken on some items. For example, if the role parameter is present, but no role name is provided.

Solution

To resolve the issue:

  1. Run the following query on the provided Master database to check if there are items where the "ar" parameter is present, but no value is specified:
    SELECT *
    FROM [dbo].[SharedFields]
    where FieldId='{DEC8D2D5-E3CF-48B6-A653-8E69E2716641}' and Value like '%ar||pe|%'
  2. If the query returns some items:
    • In the Content Editor, navigate to the items selected by the query (the ItemId column).
    • Verify which roles are supposed to have security roles set on that item, reset the Security field, and assign the proper security settings to these items again.
    • Republish the processed items.