Upon reloading a MC world, (or reload the chunks on a server), animals glitch through their cages and can roam freely. They glitch through glass blocks, I also tried it with other transparent blocks. They didn't stay in either.
Related issues
Comments

36th Duplicate of MC-2025, please use the search function to see if your bug has already been submitted. Currently over 54% of tickets are being closed as duplicate.