Skip to content

Default tenant role not found #52

@alex-haulmont

Description

@alex-haulmont

Environment

  • Platform version: 7.2.4
  • Addon version: 2.0.2

Description of the bug or enhancement

Minimal reproducible example:
I'm just creating a new tenant.
ER: tenant created
AR: Exception:

java.lang.RuntimeException: Default tenant role not found
at com.haulmont.addon.sdbmt.core.sys.listener.TenantListener.assignDefaultTenantRole(TenantListener.java:82)
at com.haulmont.addon.sdbmt.core.sys.listener.TenantListener.updateTenantAdmin(TenantListener.java:74)
at com.haulmont.addon.sdbmt.core.sys.listener.TenantListener.onBeforeInsert(TenantListener.java:60)
at com.haulmont.addon.sdbmt.core.sys.listener.TenantListener.onBeforeInsert(TenantListener.java:39)
at com.haulmont.cuba.core.sys.listener.EntityListenerManager.fireListener(EntityListenerManager.java:242)

PredefinedRoleDefinitionRepository#predefinedRoleDefinitionsMap is empty
predefinedRoleDefinitionsMap.get(“default-tenant-role” ) is null
Roles screen doesn't contain default tenant role

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions