pki-bot / pki-issues-final

0 stars 0 forks source link

OCSP EE url gives an error page #400

Closed pki-bot closed 3 years ago

pki-bot commented 3 years ago

This issue was migrated from Pagure Issue #401. Originally filed by nkinder (@nkinder) on 2012-11-05 21:59:32:


https://bugzilla.redhat.com/show_bug.cgi?id=872742 (Red Hat Certificate System)

Description of problem:

After installing, creating and configuring an OCSP instance, the OCSP EE url
obtained from the service status leads an error page.

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

How reproducible:

Steps to Reproduce:
1. Install ocsp subsystem.
2. Create an instance and configure it.
3. restart the service and get the status of the service.

Actual results:
A web page with the following message

Problem Processing Your Request

The ocsp encountered an unexpected error while processing your request. The
following is a detailed message of the error that occurred.

 Error encountered while rendering a response.

Please consult your local administrator for further assistance. The Certificate
System logs may provide further information.

Expected results:

OSCP EE page

Additional info:
pki-bot commented 3 years ago

Comment from msauton (@msauton) at 2013-01-07 23:09:13

seem to me this is not a defect, there is nothing to browse on the EE services, those are for applications, clients or servers to get validation status, not for a human to browse to, except eventually if trying to mimic what some tools do. May be the admin or install guide could have a note for the OCSP and several other subsystems, that the list of the init script does not implies a human should browse to all services, and some are for web applications?

pki-bot commented 3 years ago

Comment from vakwetu (@vakwetu) at 2013-01-18 20:17:35

This is a bug - not because we expect there to be any output if you browse to these services - but because the error that is being returned indicates another underlying problem.

The error that is returned here indicates that the template file that is needed to output the results cannot be found. This is because the template files (for success, failure and other events are being deployed to the wrong location within the instance. If you look in the system log, you see the following error:

20543.http-bio-8280-exec-1 - [17/Jan/2013:15:49:27 EST] [3] [20] CMSgateway:Could not load template /var/lib/pki/pki-tomcat28/webapps/ocsp/GenSuccess.template error java.io.FileNotFoundException: /var/lib/pki/pki-tomcat28/webapps/ocsp/GenSuccess.template (No such file or directory). 20543.http-bio-8280-exec-1 - [17/Jan/2013:15:49:27 EST] [20] [3] Servlet ocspOCSP: Error outputting template /GenSuccess.template . Error encountered while loading output template..

This points in fact to two problems:

  1. The templates are not in the right place.
  2. OCSPServet in this case is trying to load the GenSuccess template, which is clearly wrong.

The reason for this is that - while the OCSPServlet is correctly throwing an exception in this case - the exception text reading "OCSPServlet: OCSP request not provided in GET method" - the exception is logged and swallowed up, rather than being reported to the calling functions.

pki-bot commented 3 years ago

Comment from nkinder (@nkinder) at 2017-02-27 14:00:56

Metadata Update from @nkinder:

pki-bot commented 3 years ago

Comment from edewata (@edewata) at 2017-05-23 22:38:52

Closed downstream.

pki-bot commented 3 years ago

Comment from edewata (@edewata) at 2017-05-23 22:38:54

Metadata Update from @edewata:

pki-bot commented 3 years ago

Comment from mharmsen (@mharmsen) at 2017-05-24 17:53:06

Metadata Update from @mharmsen: