Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
COmanage Registry 3.3.0 (Magic Ring)
-
None
Description
One cannot delete an authenticator even if no enrollment flows establish authenticators and no CoPerson records have set an authenticator.
With debug set the given error is
Database Error
Error: SQLSTATE[23503]: Foreign key violation: 7 ERROR: update or delete on table "cm_authenticators" violates foreign key constraint "cm_co_enrollment_authenticators_authenticator_id_fkey" on table "cm_co_enrollment_authenticators" DETAIL: Key (id)=(12) is still referenced from table "cm_co_enrollment_authenticators".
SQL Query: DELETE FROM "public"."cm_authenticators" WHERE "id" = '12'