eliezio/simple-pki

Handle optimistic locking failure

eliezio opened this issue · 0 comments

The Pki#revoke() uses optimistic locking and will likely throw JpaOptimisticLockingFailureException in the face of multiple attempts to revoke the same certificate.
The operation must fail and the server must return SC=409 (https://httpstatuses.com/409).