hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1737) Apache HttpClient dependency on httpcore should specify tight version constraints
Date Thu, 21 Apr 2016 13:41:25 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251907#comment-15251907
] 

Oleg Kalnichevski commented on HTTPCLIENT-1737:
-----------------------------------------------

Hi Sam

HttpClient OSGi 4.5.2 defines HttpCore OSGi dependency version as [4.4.0, 4.5.0), which looks
correct to me. HttpClient OSGi 4.3.6 defines HttpCore OSGi dependency version as [4.3.0, 4.4.0)
which also looks correct to me. HttpClient 4.2 is so old that I see no point even fixing it.


Oleg 

> Apache HttpClient dependency on httpcore should specify tight version constraints
> ---------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1737
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1737
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>            Reporter: Sam Davis
>
> Using Apache Http Client and Core in OSGi environments can fail if multiple versions
are present, which is common (for example, Eclipse Mars includes Http versions 4.3.x, but
many popular Eclipse plugins may include 4.2.x). The problem is that the dependency from the
Http Client OSGi bundle to the Http Core OSGi bundle does not specify an upper bound, e.g.
Cient 4.2.6 depends on Core 4.2.5 *or later.* This can cause Client 4.2.5 to use Core 4.3
which completely breaks any plugin that specifies tight version constraints on Client 4.2.6
and Core 4.2.5. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=492042 for more details.
> When creating OSGi bundles, please specify exact version constraints in the manifest,
e.g. Import-Package: org.apache.http;version="[4.2.5,4.2.6)",



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message