[ 
https://issues.apache.org/jira/browse/CAY-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-2801.
--------------------------------
    Resolution: Fixed

> Incorrect equals() implementation in IdGenerationMarker could cause data 
> missing in the commit
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAY-2801
>                 URL: https://issues.apache.org/jira/browse/CAY-2801
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.2.RC2
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Blocker
>             Fix For: 4.2, 5.0.M1
>
>
> {{IdGenerationMarker}} class uses parent id hash as a data source for the 
> equals() method.
> This could cause severe problems like data missing in the commit in case of 
> the hash collision in two ids and usage of the 
> {{OpIdFactory.ReplacementAwareObjectId}} id implementation.
> There's already a commit that is part of CAY-2777 fix, that significantly 
> reduces risk of this problem:
> https://github.com/apache/cayenne/commit/53c9408e026d926601baf6e68b9761489c273397
> See also this mail thread: 
> https://lists.apache.org/thread/2hdsn7vzdbbsgzvjt9mxwxkfo81m79wq



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to