dogtagpki / pki

The Dogtag Certificate System is an enterprise-class Certificate Authority (CA) which supports all aspects of certificate lifecycle management, including key archival, OCSP and smartcard management.
https://www.dogtagpki.org
GNU General Public License v2.0
371 stars 137 forks source link

Code throws "java.io.IOException: Error: Failed to update number range" in certain use cases #3282

Open pki-bot opened 4 years ago

pki-bot commented 4 years ago

This issue was migrated from Pagure Issue #3165. Originally filed by cipherboy (@cipherboy) on 2020-03-17 10:22:51:


Description of problem:

Code throws java.io.IOException: Error: Failed to update number range. in certain use cases.

For reproducing this error , I did some changes in CS.cfg because it might not be possible in regular test cases to reproduce it.Hence some small hacks are needed to generate it.

Version-Release number of selected component (if applicable): RHEL 7.7

How reproducible: always

Steps to Reproduce:

  1. Install master . topology-02-CA.

  2. Do below changes in CS.cfg

    dbs.beginSerialNumber=1
    dbs.endSerialNumber=30
    dbs.serialCloneTransferNumber=8
    dbs.serialIncrement=100
    dbs.serialLowWaterMark=6

    Restart master .

  3. Install clone . topology-02-CA-clone.

Actual results:

Getting error ; https://bugzilla.redhat.com/show_bug.cgi?id=1754845#c9

Expected results:

It should not result in such errors and NPE. NPE and stack trace never looks user friendly.

Additional info:

Refer bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1754845#c9 for detailed scenario and use cases.

pki-bot commented 4 years ago

Comment from cipherboy (@cipherboy) at 2020-03-17 10:23:14

https://bugzilla.redhat.com/show_bug.cgi?id=1774928

pki-bot commented 4 years ago

Comment from cipherboy (@cipherboy) at 2020-03-17 10:23:16

Metadata Update from @cipherboy: