Active
Project:
Acquia Content Hub
Version:
3.7.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2025 at 13:20 UTC
Updated:
13 May 2025 at 13:53 UTC
Jump to comment: Most recent
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.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
supreetam09 commentedComment #3
supreetam09 commentedIssue seems to be happening because
Drupal\acquia_contenthub_subscriber\EventSubscriber\UnserializeContentEntityField\ReplaceAuthorWithProxyUserdepends on the fields that are being imported, instead of working at an entity level.When author fields are excluded from export from Publisher,
ReplaceAuthorWithProxyUseris not getting triggered for the author field and failing atReplaceAuthorWithProxyUser::shouldSkipin$this->shouldSkip($current_field_name, $uid_field)as$current_field_nameis never having the author field, since omitted from export.Instead of field level, we can address this proxy user change at an entity level, like a pre-entitysave event.