Project

General

Profile

Actions

Task #310

closed

Synchronization - previous audit version not exist

Added by Ondřej Kopr about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Ondřej Kopr
Category:
Synchronization
Target version:
Start date:
02/15/2017
Due date:
% Done:

100%

Estimated time:
10.00 h
Owner:

Description

After synchronization Identities not exist any previous version of this entity.

Found bug synchronization/audit?

Actions #1

Updated by Ondřej Kopr about 7 years ago

Problem found with get version of entity -> Two or more updates for one entity in one transaction. Envers get revisionId for current revision but this revision hasn't version/snapshots for entity update in this revision => NULL pointer. (One transaction == one revision).

What to do? For now is disable get changed columns from last revision. Everything else work perfect and faster (we need check previous entity more).

Discussion: Is this solution right? I can get these version from hibernate session - walk around envers.

Actions #2

Updated by Ondřej Kopr about 7 years ago

Describe problem with this thing into KB: https://proj.bcvsolutions.eu/ngidm/doku.php?id=navrh:audit

Actions #3

Updated by Ondřej Kopr about 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Vít Švanda
  • % Done changed from 0 to 90

For now is this problem fixed with skip getChangedColumns. Please check comments. :) Thank you.

Actions #4

Updated by Vít Švanda about 7 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Ondřej Kopr
  • % Done changed from 90 to 100

I confirm, that changed columns not really not dispalyed in audit table.

Actions #5

Updated by Ondřej Kopr about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF