If the villager is not wearing a green robe or their robe depending on their village, then it is a bug.
Oh yeah! It had Thorns 2. My Diamond Helmet does the same!
If the villager is not wearing a green robe or their robe depending on their village, then it is a bug.