Details
-
Fix
-
Status: Released (View Workflow)
-
High
-
Resolution: Fixed
-
2.5.4, 2.6.2
-
None
Description
Current Situation
- The SQL rescue scripts are explained from JS7 - Rescue in case of lost access to JOC Cockpit
- The scripts are broken for use with release 2.5.4 and 2.6.2 as they do not reflect changes to Identity Services
- The wrong SQL statement is
EXECUTE 'INSERT INTO IAM_IDENTITY_SERVICES("ID","IDENTITY_SERVICE_TYPE", "IDENTITY_SERVICE_NAME","REQUIRED","DISABLED", "AUTHENTICATION_SCHEME","SINGLE_FACTOR_PWD", "SINGLE_FACTOR_CERT","ORDERING") VALUES (NEXTVAL(''SEQ_IAM_IDENTITY_SERVICES''),''JOC'',''JOC-RESCUE'',0,0,''SINGLE'',1,0,0)';
Desired Behavior
- The right SQL statement is
EXECUTE 'INSERT INTO IAM_IDENTITY_SERVICES("ID","IDENTITY_SERVICE_TYPE", "IDENTITY_SERVICE_NAME","REQUIRED","DISABLED", "AUTHENTICATION_SCHEME","SECOND_FACTOR", "ORDERING") VALUES (NEXTVAL(''SEQ_IAM_IDENTITY_SERVICES''),''JOC'',''JOC-RESCUE'',0,0,''SINGLE'',0,0)';
- Similar changes are applied to SQL rescue scripts for all DBMS.
Workaround
- SQL rescue scripts for all DBMS are attached this issue.
- After extraction the downloaded scripts should be available from the following location:
<joc-home>/db/<dbms>/identity_service_rescue.sql
-
- With <joc-home> being the JOC Cockpit's home directory and <dbms> being one of h2, mssql, mysql, oracle, pgsql.
- To reset Identity Services after access to JOC Cockpit was lost users can run the script
<joc-home>/install/joc_install_tables.sh --rescue