The bug
When placing a multi-part block (like a bed or a door), it does not check whether there is an entity in the second block. Only the part of the block directly being placed is checked for entities.
To reproduce
Jump up and place a door.
Related issues
is duplicated by
relates to
Attachments
Comments

This issue relates to MC-2208.

Affects 1.16 pre5

Affects 20w28a
Can confirm in 21w03a.
Can confirm in 21w05a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a.
Video attached.
Can confirm in 21w13a.
Can confirm in 21w17a.
Can confirm in 1.17.
Can confirm in 1.18.1.
Can confirm in 1.18.2.