"some stupid diode function"
It occured to me that what is needed to rectify high voltage AC is a string of diodes in series, which is exactly what you have in a string of LED x-mas lights. Current limiting is another issue but that could be what's going on inside the box.
Crack that baby open and tell us what you find.
