Description
Given an schema defining an attribute as unique and being translated
by the translator 'qualified-id'.
Given two modules contributing an element with same local
value for the unique attribute.
This causes an ApplicationRuntimeException at
org.apache.hivemind.impl.SchemaElement#validateAttributes
{
...
throw new ApplicationRuntimeException(buffer.toString(), element.getLocation(), null);
}
with message:
Value for attribute ''
'' (''
{1}'') duplicates a prior instance at
{2}.
Expected behaviour:
No complaint about duplicate values because the translated values are not equal.
Solution:
translate values before checking uniqueness. Patch follows.