2026-08-10T15:07:00.575Z INFO 371 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.rbac.context.ContextIntegrationTests]: ContextIntegrationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T15:07:00.596Z INFO 371 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.rbac.context.ContextIntegrationTests
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select current_setting('hsadminng.hasGlobalAdminRole', true)
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select current_setting('hsadminng.hasGlobalAdminRole', true)
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
2026-08-10T15:07:00.624Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T15:07:00.624Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [401] subject unknown-subject given in `base.defineContext(...)` does not exist or is deactivated
Where: PL/pgSQL function rbac.determinecurrentsubjectuuid(character varying) line 11 at RAISE
SQL statement "select rbac.determineCurrentSubjectUuid(currentSubject)"
PL/pgSQL function base.contextdefined(character varying,text,character varying,character varying,text) line 16 at SQL statement
SQL statement "call base.contextDefined(currentTask, currentRequest, currentSubject, assumedRoles, currentSubjectGroups)"
PL/pgSQL function base.definecontext(character varying,text,character varying,text,text) line 23 at CALL
Hibernate: select base.currentSubject()
2026-08-10T15:07:00.626Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 25P02
2026-08-10T15:07:00.626Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: current transaction is aborted, commands ignored until end of transaction block
Hibernate: select rbac.currentSubjectUuid()
2026-08-10T15:07:00.627Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 25P02
2026-08-10T15:07:00.627Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: current transaction is aborted, commands ignored until end of transaction block
Hibernate: select base.assumedRoles() as roles
2026-08-10T15:07:00.629Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 25P02
2026-08-10T15:07:00.630Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: current transaction is aborted, commands ignored until end of transaction block
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
2026-08-10T15:07:00.631Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 25P02
2026-08-10T15:07:00.631Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: current transaction is aborted, commands ignored until end of transaction block
Hibernate: SELECT name FROM rbac.subject s WHERE s.uuid=?
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select base.currentSubject()
Hibernate: select rbac.currentSubjectUuid()
Hibernate: select base.assumedRoles() as roles
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
Hibernate: select rbac.currentSubjectUuid()
Hibernate: select rbac.findObjectUuidByIdName('rbactest.package', 'unknown')
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select current_setting('hsadminng.currentTask');
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
2026-08-10T15:07:00.682Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T15:07:00.682Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [403] undefined has no permission to assume role rbactest.package#yyy00:ADMIN
Where: PL/pgSQL function rbac.determinecurrentsubjectorassumedrolesuuids(uuid[],text) line 14 at RAISE
PL/pgSQL function base.contextdefined(character varying,text,character varying,character varying,text) line 26 at assignment
SQL statement "call base.contextDefined(currentTask, currentRequest, currentSubject, assumedRoles, currentSubjectGroups)"
PL/pgSQL function base.definecontext(character varying,text,character varying,text,text) line 23 at CALL
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: SELECT count(*) FROM rbac.subject WHERE name = ?
Hibernate: SELECT count(*) FROM rbac.subject WHERE name = ?
Hibernate: SELECT count(*) FROM rbac.subject WHERE name = ?
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select base.currentSubject()
Hibernate: select base.assumedRoles() as roles
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
2026-08-10T15:07:00.712Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T15:07:00.712Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [403] subject tst-customer_admin_xxx has no permission to assume role rbactest.package#yyy00:ADMIN
Where: PL/pgSQL function rbac.determinecurrentsubjectorassumedrolesuuids(uuid[],text) line 49 at RAISE
PL/pgSQL function base.contextdefined(character varying,text,character varying,character varying,text) line 26 at assignment
SQL statement "call base.contextDefined(currentTask, currentRequest, currentSubject, assumedRoles, currentSubjectGroups)"
PL/pgSQL function base.definecontext(character varying,text,character varying,text,text) line 23 at CALL
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.isGlobalAdmin()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
2026-08-10T15:07:00.733Z WARN 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T15:07:00.734Z ERROR 371 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [401] subject unknown@example.org given in `base.defineContext(...)` does not exist or is deactivated
Where: PL/pgSQL function rbac.determinecurrentsubjectuuid(character varying) line 11 at RAISE
SQL statement "select rbac.determineCurrentSubjectUuid(currentSubject)"
PL/pgSQL function base.contextdefined(character varying,text,character varying,character varying,text) line 16 at SQL statement
SQL statement "call base.contextDefined(currentTask, currentRequest, currentSubject, assumedRoles, currentSubjectGroups)"
PL/pgSQL function base.definecontext(character varying,text,character varying,text,text) line 23 at CALL
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: call rbac.grantRoleToSubjectUnchecked(
rbac.findRoleId(?),
rbac.findRoleId(?),
?);
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: call rbac.grantRoleToSubjectUnchecked(
rbac.findRoleId(?),
rbac.findRoleId(?),
?);
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select base.currentSubject()
Hibernate: select base.assumedRoles() as roles
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
Hibernate: SELECT rbac.findRoleId(?)
Hibernate: SELECT rbac.findRoleId(?)
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: SELECT uuid FROM rbac.subject WHERE name = ?
Hibernate: SELECT name FROM rbac.subject s WHERE s.uuid=?
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select base.currentSubject()
Hibernate: select rbac.currentSubjectUuid()
Hibernate: select base.assumedRoles() as roles
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select base.currentSubject()
Hibernate: select base.assumedRoles() as roles
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.isGlobalAdmin()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select rbac.hasGlobalAdminRole()
Hibernate: call base.defineContext(
cast(? as varchar(127)),
cast(? as text),
cast(? as varchar(63)),
cast(? as text),
cast(? as text));
Hibernate: select base.currentSubject()
Hibernate: select rbac.currentSubjectUuid()
Hibernate: select base.assumedRoles() as roles
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids
Hibernate: select rbac.currentSubjectOrAssumedRolesUuids() as uuids