The Bug:
When attempting to fill a glass bottle with water or honey in spawn protection, the action succeeds client-side but fails server-side, causing a desync.
Steps to Reproduce:
Start a server, join it, give operator permissions to yourself, and switch into creative mode.
Set the world spawn to your current location and summon some water nearby by using the commands provided below.
/setworldspawn ~ ~ ~
/fill ~4 ~-1 ~1 ~2 ~-1 ~-1 minecraft:water
Obtain some glass bottles.
Switch into survival mode, remove your operator permissions, and grant anyone else with them in order to activate spawn protection.
Attempt to fill the glass bottles with water, and once you've done this, reload into the world to see if this action was successful.
Take note as to whether or not attempting to use glass bottles in spawn protection causes a desync.
Observed Behavior:
The action succeeds client-side but fails server-side, causing a desync.
Expected Behavior:
No desync would occur.
Related issues
Attachments
Comments

Probably duplicates MC-99075

I can reproduce this (in 1.17.1-RC1), however for others trying to reproduce this note that in order for spawn protection to work there needs to be at least one operator on the server, so op jeb_ or something before deoping yourself.