Fixed
Details
Assignee
Marko BekhtaMarko BekhtaReporter
Yoann RodièreYoann RodièreComponents
Sprint
NoneFix versions
Affects versions
Priority
Major
Details
Details
Assignee
Marko Bekhta
Marko BekhtaReporter
Yoann Rodière
Yoann RodièreComponents
Sprint
None
Fix versions
Affects versions
Priority
Created December 6, 2023 at 4:17 PM
Updated April 10, 2024 at 8:12 AM
Resolved January 23, 2024 at 8:13 AM
See
I end up with this:
See how the session clearly has a tenant ID, but the query SQL doesn’t include a where clause (
where tenantName = ‘mainTenant'
). Clearly Hibernate ORM didn’t add the filter it’s supposed to add automatically to every relevant query (seeorg.hibernate.binder.internal.TenantIdBinder
,org.hibernate.internal.SessionImpl#setUpMultitenancy
).TBH this looks more like a Hibernate ORM bug or limitation, but we need to investigate to see if:
Our tests are incomplete; how could this get past CI?
We can work around it by creating our query differently.
We can legitimately report it to Hibernate ORM (maybe it’s a known issue or documented limitation).