No reviewers
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra!57
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/b4-controller-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Batch B4 — #27 (controller god module) and #28 (error contracts).
#27
CertManagementControlleris parse/render only (951 → ~290 lines). Revocation moved toMdidWs.CertManagement.Revocation, status lookup toMdidWs.CertManagement.Status. Revoke outcome merge is covered by a table test.#28 All
/api/v1/cert_mgmterrors (controllers, auth plugs, admin, CA downloads) render throughMdidWsWeb.ApiErroras{iErrorCode, sErrorMessage}.Breaking for clients
{"error": ...}; now ICD shape (README/AGENTS updated).cert_validityoverflow now also returnsrequested/maximum.MdidWsWeb.CertManagementController :revoke_soap_options/:status_soap_options→MdidWs.CertManagement.Revocation|Status, :soap_options.Kept as-is (compat): HTTP-200 ICD outcomes (-101, RN102, RV200, RV201), auth-plug code values, OAuth token endpoint RFC 6749 errors. #28's "stop overloading iErrorCode with HTTP codes" is therefore only partly done.
Verification:
mix precommit306 passed. Coverage (changed modules): Revocation 85.7%+, Status 94.5%, CertManagementController 86.5%, AdminController 82.4%, ApiError/RequireScope 100%; whole-app 74.5%. Two-pass review done; the last small fixes (test +def outcome) did not get a second Pass 1.🤖 Generated with Claude Code
CertManagementController is now parse/render only; revocation and status logic moved to MdidWs.CertManagement.Revocation and Status. All cert_mgmt errors go through MdidWsWeb.ApiError ({iErrorCode,sErrorMessage}); enrollment and admin errors no longer use {error: ...}. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>