lightning
lightning copied to clipboard
Credential form not picking up default values when creating a new credential
Description When creating a new credential, the form does not populate the default values that are specified in adaptor configuration-schema. If the user creates a new credential without editing the fields that have default values this can cause problem during workflow execution.
For example.
I was trying to connect mssql
database that requires the encrypt
to be set to true
. Since i new that by default mssql
adaptor set the encrypt
value to true
i created the mssql
credential without checking the Encrypt
box. This cause the job to fail with the following error Server requires encryption, set 'encrypt' config option to true.
Steps to Reproduce:
- Navigate to the credential creation page.
- Click on the "Add new Credential" button.
- Select
mssql
adaptor - Observe the form fields that should have default values. See mssql configuration schema here
Expected Behavior: The form fields should automatically populate with the predefined default values.
Actual Behavior:
The form fields port
, Encrypt
, RowCollectionOnRequestCompletion
and TrustServerCertificate
remain empty, requiring manual input for each field.
Screenshots:
Environment: I have reproduced this locally on main v2.7.2