You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/02/17 02:49:50 UTC
[GH] (grails-core/fix/multitenant-datasource-qualifier-routing): Workflow run "CI - Groovy Joint Validation Build" failed!
The GitHub Actions job "CI - Groovy Joint Validation Build" on grails-core.git/fix/multitenant-datasource-qualifier-routing has failed.
Run started by GitHub user jamesfredley (triggered by jamesfredley).
Head commit for run:
4e04e96f81193bfbe1a034ccd9145b145a9a5d72 / James Fredley <ja...@users.noreply.github.com>
fix: preserve explicit datasource qualifiers for MultiTenant entities in allQualifiers()
GormEnhancer.allQualifiers() unconditionally expanded qualifiers to all
connection sources for MultiTenant entities, even when the entity declared
an explicit non-default datasource (e.g., datasource 'secondary'). This
caused silent data routing to the wrong database under DISCRIMINATOR
multi-tenancy mode.
The fix checks whether the entity has an explicit non-default, non-ALL
datasource declaration before expanding qualifiers. When present, the
explicit mapping is preserved.
Added 7 Spock tests covering all combinations:
- MultiTenant with explicit/default/ALL datasource
- Non-MultiTenant with explicit/default/ALL datasource
- MultiTenant with multiple explicit datasources
Report URL: https://github.com/apache/grails-core/actions/runs/22083891080
With regards,
GitHub Actions via GitBox