fix(certs): default to active certs when no search term #2

Merged
supportgsc merged 1 commits from fix/certs-list-default into main 2026-06-01 10:14:17 +00:00

1 Commits

Author SHA1 Message Date
Claude (gsc-ops-api init)
30268db4be fix(certs): default to active certs when no search term
EJBCA's certificate/search REST endpoint rejects an empty criteria list
("Invalid criteria value, cannot be empty"), so GET /certs with no ?search
returned a 500. Default to a STATUS=CERT_ACTIVE criterion in that case so the
list endpoint returns active certificates. Search-by-query is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 12:13:52 +02:00