Comment 3 for bug 616702

Revision history for this message
Alexander Strebkov (alexanderstrebkov) wrote :

I see you included part of the patch to fix stack overflow in 1.1-beta1. But I also encountered a problem with keys stored in validation plugin. After Validation.clear() few times in unit tests I eventually get failed tests due to validation keys like "user..name", after that "user...name" e.t.c. So with each test/cleanup a new point seems to be stuck somewhere in ValidationPlugin.keys. I don't know if it is a good solution to add

ValidationPlugin.keys.get().clear();

to the end of Validation.clear() but it fixes the problem.

Maybe it would be even better to auto-cleanup all previous validation errors/stuck_keys before performing validation.