Error java.lang.StringIndexOutOfBoundsException  when creating a SAML certificate
search cancel

Error java.lang.StringIndexOutOfBoundsException  when creating a SAML certificate

book

Article ID: 234892

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Unable to save a SAML certificate in Clarity

STEPS TO REPRODUCE:

  1. Enable a system for SAML authentication
  2. Go to MUX - Administration - Authentication and Keys - Certificates
  3. Hit the Plus sign to create a new signed certificate
  4. Paste the text in the Certificate Text field

 

Expected Results: The certificate to be saved

Actual Results: Error message Invalid certificate or the certificate is not getting saved

Error message: 

ERROR 2022-02-16 17:05:50,481 [https-openssl-nio2-443-exec-18] rest.validation (clarity:XXXXX:37907814__6FB575E0-2ECD-4FCA-9B5D-C611EC95D317:PPM_REST_API) ExceptionInfo ::  Could not update resource. Resource name: certs. Error code: null Error message: Creating instance of: certificate

ERROR 2022-02-16 17:06:14,144 [https-openssl-nio2-443-exec-14] object.CustomObjectInstanceClass (clarity:XXXXX:37907814__6FB575E0-2ECD-4FCA-9B5D-C611EC95D317:PPM_REST_API) Exception on update

java.lang.StringIndexOutOfBoundsException: begin 167, end 110, length 264

Environment

Release: 16.0.0, 16.0.1 

Cause

DE64107 

Workaround (SQL Server): 

ALTER TABLE CMN_SEC_CERTS ALTER COLUMN CERT_VALUE nvarchar(max)

Resolution

Resolved in 16.0.2