Skip to content

DbUserBackend: Inconsistent case sensitivity of the user_name query column between MySQL and PostgreSQL #5523

Description

@raviks789

Because of the presence of the case insensitive collation 'utf8mb4_unicode_ci' in mysql database on the column name for the table icingaweb_user, user_name query column in DbUserBackend is always case insensitive for mysql. And there is no difference between the user (where COLLATE utf8mb4_general_ci seems redundant) and user_name query columns as they are both case insensitive.

And in case of Postgres the case sensitivity works as expected.

But since the user names have case-insensitive uniqueness at the schema level, the case sensitive filter might be redundant for users and either user or user_name query column could be dropped to have consistency across MySQL and PostgreSQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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