Skip to content

On first boot database seeding creates MANAGED admin despite the USER table being already populated #6392

@mulder999

Description

@mulder999

Current Behavior

Following limitation #6312, we renamed managed admin user as disabled__admin with v4 to avoid possible conflict with any OIDC user.

Steps to Reproduce

  1. Convert a v4 DB whose MANAGED admin user was renamed and contains no other users
  2. Start DT v5

-> Seed MANAGED admin user is created again

Expected Behavior

No seeding of admin user if other users already exists.

Dependency-Track Version

5.x

Browser

N/A

Checklist

Metadata

Metadata

Assignees

No one assigned

    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