Proxy User in Disable User Syndication field does not work when Author fields are excluded from Publisher

Created on 13 May 2025, 3 months ago

Problem/Motivation

When Author field in Publisher is excluded from export for contents (/admin/structure/types/manage/[content-type]/contenthub) and a Proxy User is selected in Subscriber end with Disable User Syndication option turned on, after importing, content author becomes empty (for new content) or same as Publisher (for existing content), instead of the proxy user selected.

Steps to reproduce

  1. Configure user/author field to be excluded from export in Publisher (/admin/structure/types/manage/[content-type]/contenthub)
  2. Enable the "Disable User Syndication" option in Subscriber Import settings (/admin/config/services/acquia-contenthub/import-queue)
  3. Set a Proxy User to be author of contents
  4. Export-Import content
  5. Notice author becomes empty for new content after sync
  6. Notice author remains same as Publisher
🐛 Bug report
Status

Active

Version

3.7

Component

Code

Created by

🇮🇳India Supreetam09 Kolkata

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @Supreetam09
  • 🇮🇳India Supreetam09 Kolkata

    Issue seems to be happening because Drupal\acquia_contenthub_subscriber\EventSubscriber\UnserializeContentEntityField\ReplaceAuthorWithProxyUser depends on the fields that are being imported, instead of working at an entity level. So when author fields are excluded from export from Publisher, ReplaceAuthorWithProxyUser is not getting triggered for the author field and failing at ReplaceAuthorWithProxyUser::shouldSkip in $this->shouldSkip($current_field_name, $uid_field) as $current_field_name is never having the author field, since omitted from export.

  • Pipeline finished with Failed
    3 months ago
    Total: 3697s
    #496023
Production build 0.71.5 2024