You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Knut Wannheden (JIRA)" <hi...@jakarta.apache.org> on 2005/04/27 12:57:25 UTC
[jira] Closed: (HIVEMIND-100) unique attribute does not distinguish between values that are translated
[ http://issues.apache.org/jira/browse/HIVEMIND-100?page=all ]
Knut Wannheden closed HIVEMIND-100:
-----------------------------------
Resolution: Fixed
Fix Version: 1.1
Patch applied. Thanks Michael!
> unique attribute does not distinguish between values that are translated
> ------------------------------------------------------------------------
>
> Key: HIVEMIND-100
> URL: http://issues.apache.org/jira/browse/HIVEMIND-100
> Project: HiveMind
> Type: Bug
> Components: framework
> Versions: 1.1
> Environment: J2SDK 1.4.2_04 on W2000
> Reporter: Michael Frericks
> Priority: Minor
> Fix For: 1.1
> Attachments: unique-attribute.patch
>
> 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 ''{0}'' (''{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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org