This bug has been copied from bug #365501 and has been proposed to be backported to 5.2 z-stream (EUS).
Can we close this bug out?
Closing since this will be fixed in 5.3.