Skip to content

EnversRevisionRepositoryImpl::findRevision change in behaviour #333

@neil-ca-moore

Description

@neil-ca-moore

Somewhere between 2.1.17 and 2.5.6, the behaviour of this function has changed. I can work on a minimal repro case if required, but before I go to that effort I just want to check whether anybody is aware of this (I couldn't find it in the release notes)? Also it might be a different project that the bug should be filed against?

Please let me know next steps?

Thanks.

Scenario:

Entity E_1 and E_2 both annotated with @Audited
Create entity E_1, at time T_1 at revision 1.
Create another entity E_2, at time T_2 at revision 2.
Postgres DB

Steps:
Call org.springframework.data.envers.repository.support.EnversRevisionRepositoryImpl#findRevision with arguments

ID =
revisionNumber = 2

Result at spring-data-envers 2.1.17:

Result E_1 at revision 1

Result at spring-data-envers 2.5.6:

Optional.empty()

Conclusion:

It seems like the behaviour changed from returning the most recent version at that revision or earlier, to returning only the specific revision requested?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions