Skip to content

web admin: wrong display of fields for PKI templates #6749

@nqb

Description

@nqb

Describe the bug
When you create a PKI template with Organisation, Organisation unit, State and Country, fields are saved in DB.
If you go back to your PKI template to enable SCEP setting and save. Then Organisation, Organisation unit, State and Country informations disappear when you switch to "General" tab.

If you close and get back to your template, you got same behavior. You need to refresh your web browser to get informations.

When I enabled SCEP setting on my PKI template, PATCH request sent by frontend doesn't contain Organisation, Organisation unit, State and Country fields.

However, the next API call to api/v1/pki/profiles contains this informations.

Has been noticed on PF 11.0.0, I was able to replicate on PF 11.1.0

To Reproduce
Steps to reproduce the behavior:

  1. Create a CA
  2. Create a PKI template with Organisation, Organisation unit, State and Country fields
  3. Edit yout PKI template to enable SCEP setting
  4. Save
  5. Open your PKI template and check values of Organisation, Organisation unit, State and Country fields

=> They are blank.

Expected behavior
Frontend should display values of PKI templates in DB

Additional context
Organisation, Organisation unit, State and Country have never been updated in DB, only SCEP setting is updated.

Certainly related to #6713

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions