Problem/Motivation

Some files are not created on import, as result I have media created with empty image field (target id = NULL).

I guess it related to changes in #3420464, because file not saving after creation and empty reference assigned in \Drupal\single_content_sync\Plugin\SingleContentSyncFieldProcessor\FileAsset::importFieldValue

Proposed solution

Add file save after create new entity.

CommentFileSizeAuthor
#3 3525247-file-save-fix-3.patch668 byteskiseleva.t
Command icon Show commands

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

kiseleva.t created an issue. See original summary.

kiseleva.t’s picture

Status: Needs work » Needs review
StatusFileSize
new668 bytes

Exported MR into static file.

kiseleva.t’s picture

dreg’s picture

Same issue. On import all Media items are created, image files are in correct file location but the Media entity does not appear to be connected to the file in any way. Applying patch #3 fixed our issue.

nginex’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch, it does make sense

  • nginex committed de0f4fa2 on 1.4.x
    Issue #3525247: Save new file during importing
    
nginex’s picture

Status: Reviewed & tested by the community » Fixed

This is now available in new release 1.4.14

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.