#1251 Incompatibility with httpcomponents-client-4.4 on F22
Closed: Invalid None Opened 9 years ago by edewata.

The pki CLI does not work with httpcomponents-client-4.4 which is the default on Fedora 22.

$ pki -v cert-find
...
javax.ws.rs.ProcessingException: Unable to invoke request
        at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287)
        at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:407)
        at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102)
        at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:62)
        at com.sun.proxy.$Proxy26.searchCerts(Unknown Source)
        at com.netscape.certsrv.cert.CertClient.findCerts(CertClient.java:64)
        at com.netscape.cmstools.cert.CertFindCLI.execute(CertFindCLI.java:268)
        at com.netscape.cmstools.cli.CLI.execute(CLI.java:265)
        at com.netscape.cmstools.cert.CertCLI.execute(CertCLI.java:85)
        at com.netscape.cmstools.cli.ProxyCLI.execute(ProxyCLI.java:119)
        at com.netscape.cmstools.cli.CLI.execute(CLI.java:265)
        at com.netscape.cmstools.cli.MainCLI.execute(MainCLI.java:523)
        at com.netscape.cmstools.cli.MainCLI.main(MainCLI.java:535)
Caused by: java.lang.IllegalStateException: Unsupported cookie spec: default
        at org.apache.http.cookie.CookieSpecRegistry.getCookieSpec(CookieSpecRegistry.java:110)
        at org.apache.http.cookie.CookieSpecRegistry$1.create(CookieSpecRegistry.java:163)
        at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:157)
        at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
        at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:166)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
        at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:879)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:84)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
        at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283)
        ... 12 more

Downgrading to httpcomponents-client-4.3 fixes the problem:
http://koji.fedoraproject.org/koji/buildinfo?buildID=604807

$ rpm -e --nodeps httpcomponents-client
$ yum localinstall httpcomponents-client-4.3.5-3.fc22.noarch.rpm

Per 10.2.3 Triage meeting of 02/26/2015: leave here until we now which release is on F22

Per CS/DS Meeting of 03/09/2015: 10.3

NOTE: Since Tomcat 8 was postponed until Fedora 23.

This is no longer an issue on F23 or later.

Metadata Update from @edewata:
- Issue set to the milestone: UNTRIAGED

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1813

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata