Added a test, the problem itself was fixed in MDEV-6068
Attach a file by drag & drop or click to upload