I have this shared constraint:
loginForm = {
username = {required=true}, pwd = {required=true}
}
In my handler I am doing this:
validateOrFail(target=rc, constraints="loginForm");
If I leave one of the fields empty I get the proper exception thrown.
If I provide both elements I get the above error:
The function [keyExists] does not exist in the String
lucee.runtime.exp.ExpressionException: The function [keyExists] does not exist in the String.
at lucee.runtime.type.util.MemberUtil.call(MemberUtil.java:158)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:796)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
at models.validationmanager_cfc$cf.udfCall2(/cbvalidation/models/ValidationManager.cfc:283)
at models.validationmanager_cfc$cf.udfCall(/cbvalidation/models/ValidationManager.cfc)