Wrong tenant-identifier in Envers temporary session

Description

In org.hibernate.envers.internal.tools.EntityTools line 52 a temporary session is created, but it has the wrong tenant-identifier and this throws an exception where the multi-tenancy strategy selects a different datasource and the runtime environment does not allow multiple datasource during a transaction.

This might have been introduced by HHH-13565.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Giovanni Lovato

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Worked in

5.4.4

Components

Affects versions

Priority

Blocker
Configure