Bug 489380

Summary: displayBySerial throws bad error message on unknown serial numbers
Product: [Retired] Dogtag Certificate System Reporter: Rob Crittenden <rcritten>
Component: CAAssignee: Andrew Wnuk <awnuk>
Status: CLOSED DUPLICATE QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: 1.0CC: awnuk, benl, dpal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-17 22:07:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 443788    

Description Rob Crittenden 2009-03-09 19:35:29 UTC
Description of problem:

Retrieve an unknown serial number using:

https://ca.example.com:9444/ca/ee/ca/displayBySerial?serialNumber=0xb

and the result is a page containing the error message:

LDAP operation failure - cn=11,ou=certificateRepository, ou=ca, dc=ca.example.com-pki-ca netscape.ldap.LDAPException: error result (32); matchedDN = ou=certificaterepository,ou=ca,dc=ca.example.com-pki-ca

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

svn checkout r276

Steps to Reproduce:

Request a certificate to be displayed for a non-existent serial #
  
Expected results:

A status message saying "this certificate does not exist" or something of the sort.

Comment 1 Andrew Wnuk 2009-03-17 22:07:52 UTC
I used CA installed on Fedora 8 and FireFox 2.0.0.19 to test the following combinations:

  https://<hostname>:9444/ca/ee/ca/displayBySerial?serialNumber=0xb
  https://<hostname>:9444/ca/ee/ca/displayBySerial?serialNumber=11

  http://<hostname>:9180/ca/ee/ca/displayBySerial?serialNumber=0xb
  http://<hostname>:9180/ca/ee/ca/displayBySerial?serialNumber=11

  https://<hostname>:9443/ca/agent/ca/displayBySerial?serialNumber=0xb
  https://<hostname>:9443/ca/agent/ca/displayBySerial?serialNumber=11

and they all work.

Comment 2 Rob Crittenden 2009-03-17 22:24:44 UTC
Worked how? What message did you get back? Is there an existing cert with that serial number?

Comment 3 Andrew Wnuk 2010-05-11 23:50:07 UTC

*** This bug has been marked as a duplicate of bug 553423 ***