The bug
When shooting an arrow on top of a player in Creative mode, a closed shulker, a breeze, or an invincible mob, the arrow glitches on top of the entity.
Affects all the following entities:
Players in Creative mode
Closed shulkers
Invulnerable mobs
BreezeFixed in 24w18a
How to reproduce
Use the following command to summon a NoAI shulker:
/summon shulker ~ ~ ~ {NoAI:1b}
Set the game mode to creative mode
Fly above the shulker
[media]Shoot the shulker with a bow and arrows
Note: NoAI shulker will always be closed and can help to reproduce the issue.
Example
Here is an example in video: https://www.youtube.com/watch?v=LnuXMNY4gs8
Linked issues
is duplicated by 25
relates to 4
Attachments
Comments
Can confirm in 20w51a.
Can confirm in 21w05b.
Can confirm in 21w07a.
Video attached.

Also occurs when the dragon is on the bedrock pedestal.

Confirmed for 21w15a.
Can confirm in 1.17.
Can confirm in 1.18.2 and 22w12a.

I recall this happening to endermen with nowhere to teleport; should this be counted in this ticket or reported separately?
Can confirm in 22w14a. Just for clarification purposes, this can also be seen with the player's allay.
[media]
Can confirm in 24w06a
Can confirm in 1.20.4.

Not entirely sure how this hasn't been fixed yet since it was fixed for Tridents; Since they inherit from the arrow class, what about implementing the way tridents deflect into arrows too?
Ok, i get it. It can be reproduced by shooting straight down on the entity. That way it seems like the arrow keeps bouncing around on top of the entity.
Shooting from an angel or the side will result in the arrow bouncing away.