You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Michael Frericks (JIRA)" <hi...@jakarta.apache.org> on 2005/03/16 23:16:22 UTC

[jira] Created: (HIVEMIND-100) unique attribute does not distinguish between values that are translated

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
 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
-
If you want more information on JIRA, or have a bug to report 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


[jira] Closed: (HIVEMIND-100) unique attribute does not distinguish between values that are translated

Posted by "Knut Wannheden (JIRA)" <hi...@jakarta.apache.org>.
     [ 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


[jira] Updated: (HIVEMIND-100) unique attribute does not distinguish between values that are translated

Posted by "Michael Frericks (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-100?page=history ]

Michael Frericks updated HIVEMIND-100:
--------------------------------------

    Attachment: unique-attribute.patch

Contains unit-test to show bug in unmodified codebase.
Contains patched class SchemaElement.
Contains adjusted Junit-Test class TestSchemaProcessor.



> 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
>  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
-
If you want more information on JIRA, or have a bug to report 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