Replacing a wooden chest with a metal one puts the items from the chest in your inventory.
If your inventory is full, you cannot replace the wooden chest (Cannot insert X. Player's inventory full.).
[0.10.11] Replacing chest puts items in inventory
Re: [0.10.11] Replacing chest puts items in inventory
Thanks for the report, it is fixed for 0.10.12