libresign/lib
Vitor Mattos 3d4bdf0294
fix: filter CA ID from OU only when certificate not generated
The CA ID (libresign-ca-id:...) in OrganizationalUnit should only be
filtered out when the certificate is not generated (isSetupOk() returns
false). When the certificate is successfully generated, the CA ID must
be preserved in the API response.

This ensures:
- Generated certificates: CA ID is visible (expected behavior)
- Failed/not generated: CA ID is filtered to prevent stale data in form

Integration tests validated:
- features/account/signature.feature:2 (OpenSSL)
- features/account/signature.feature:23 (CFSSL)
- features/admin/certificate_openssl.feature:2
- features/admin/certificate_openssl.feature:35

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-12-15 17:39:24 -03:00
..
Activity chore: rollback to default value 2025-12-13 17:20:01 -03:00
AppInfo feat: register SignRequestCanceledEvent listeners in Application 2025-12-13 17:16:43 -03:00
BackgroundJob feat(crl): revoke certificates when user account is deleted 2025-11-27 16:00:48 -03:00
Collaboration/Collaborators fix: psalm issues about override 2025-10-07 18:23:41 -03:00
Command fix: use enum 2025-11-27 16:42:23 -03:00
Controller fix: update PDF path in DevelopController 2025-12-15 16:02:35 -03:00
DataObjects chore: make possible to don't have an image as signature 2025-04-11 10:42:55 -03:00
Dav refactor(dav): add libresign- prefix to DAV property names 2025-12-03 01:01:31 -03:00
Db feat: include docmdpLevel in API responses 2025-12-14 16:38:34 -03:00
Enum refactor: move signature flow constants to enum 2025-12-12 17:14:12 -03:00
Events fix: cs 2025-12-13 17:18:31 -03:00
Exception fix: psalm issues about override 2025-10-07 18:23:41 -03:00
Files refactor: move SignatureFlow enum to dedicated Enum directory 2025-12-11 11:45:53 -03:00
Handler fix: filter CA ID from OU only when certificate not generated 2025-12-15 17:39:24 -03:00
Helper refactor: move SignRequestStatus enum to dedicated Enum directory 2025-12-11 11:42:11 -03:00
Listener fix: cs 2025-12-13 17:18:31 -03:00
Middleware fix: psalm issues about override 2025-10-07 18:23:41 -03:00
Migration feat: add docmdp_level column to libresign_file table 2025-12-14 16:38:34 -03:00
Notification fix: cs 2025-12-13 17:18:31 -03:00
Service feat: include docmdpLevel in API responses 2025-12-14 16:38:34 -03:00
Settings refactor: move SignatureFlow enum to dedicated Enum directory 2025-12-11 11:45:53 -03:00
Capabilities.php fix: psalm issues about override 2025-10-07 18:23:41 -03:00
ResponseDefinitions.php test: fix unit tests for DocMDP per-file feature 2025-12-14 16:38:34 -03:00