Problem/Motivation
If by mistake, user imports an exported zip file entity into a wrong website (a website with different system.site uuid), the entity is created into the destination website, but breaks (WSOD) on any entity's operation.
Steps to reproduce
- Install the module into 2 different websites (not just different environments of the same website)
- On website A, export a node of a content type not existing into website B
- On website B, import the exported node from website A
- The node imported gets created
- View, Edit, Delete the created node breaks the website B
Proposed resolution
Avoid importing an exported entity into a different website based on the system.site. uuid configuration value.
Additionally validate the entity bundle exists.
Issue fork single_content_sync-3332663
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
Comment #2
nginex commentedComment #3
mkdok commentedComment #5
mkdok commentedComment #8
nginex commentedThanks for the patch, I added a few fixes and improvements.
Comment #9
nginex commented