Bug 1248752 - Client pki-tools missing tomcat-servlet dependency
Summary: Client pki-tools missing tomcat-servlet dependency
Keywords:
Status: CLOSED EOL
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: Tools - Java
Version: 10.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matthew Harmsen
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 1252988
TreeView+ depends on / blocked
 
Reported: 2015-07-30 18:27 UTC by John Cosgrove
Modified: 2020-03-27 20:05 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 1252988 (view as bug list)
Environment:
Last Closed: 2020-03-27 20:05:42 UTC
Embargoed:


Attachments (Terms of Use)

Description John Cosgrove 2015-07-30 18:27:17 UTC
Description of problem: When querying a CA with the client-side pki command and the cert-find subcommand, no HTTP request is actually generated / sent and a java stack trace is output. After installing the tomcat-servlet package on the client, the command behaves as expected.

Version-Release number of selected component (if applicable): pki-tools 10.2.5-1

How reproducible: 100% of the time

Steps to Reproduce:
1. install fedora 22
2. install pki-tools without installing tomcat-servlet
3. query a CA with cert-find:
   pki -v -C ~/.pki.password -U 'https://<host>:8443/ca' cert-find --status REVOKED

Actual results:
No HTTP request leaves the machine; java trace stack starts with "ava.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest"

Expected results:
List of certs that match query structure. 

Additional info:
'cert-show' works fine without tomcat-servlet package, for some reason. Fedora 22 fix is to install tomcat-servlet.

Comment 1 Josh Cain 2015-07-31 14:39:18 UTC
I was also able to reproduce the bug with the steps above.  However, I was able to get away with grabbing just the servlet-api import:

wget http://search.maven.org/remotecontent?filepath=javax/servlet/servlet-api/2.5/servlet-api-2.5.jar -O /usr/share/java/servlet-api-2.5.jar

Comment 2 Matthew Harmsen 2015-08-09 20:19:44 UTC
Fixed in master: 52547567fee5e32b58e69c017546cc20f87fbef9


Note You need to log in before you can comment on or make changes to this bug.