Users restored incorrectly in selective restore

Description

When we have a database that the name starts with admin we may observe incorrect behavior of selective users restoration.

Due to the following line the database is skipped for users/roles restoration. I’ve found it problematic in 2 cases:

  1. When restoring a namespace with problematic database name (for example administration.*) it makes the database filter empty and ALL the users are restored (includes users from other databases).

  2. When restoring multiple namespaces, including the problematic one (for example administration.*,somedb.*) it skips the administation database in filters and as a result the user related to this database is NOT restored (the other ones are).

Environment

None

Activity

Boris Ilijic March 19, 2025 at 10:38 AM

Thank you for reporting the bug and for the provided PR.

Details

Assignee

Reporter

Reviewer

Needs QA

Yes

Components

Fix versions

Priority

Smart Checklist

Created March 18, 2025 at 4:22 PM
Updated yesterday