[
https://issues.apache.org/jira/browse/HTTPCLIENT-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250436#comment-15250436
]
Sam Davis commented on HTTPCLIENT-1737:
---------------------------------------
Hi Gary,
Thanks for your response. I agree that this should be fixed for future
versions, but it would be great if the fix could be backported to 4.2 and 4.3
because both of those versions will likely be included in the next Eclipse
release (Eclipse Neon, to be released in June). Hopefully if 4.2 and 4.3 get
fixed, we could update Eclipse to use those new versions and solve this problem
for Eclipse plugins. Of course someone could always include an old version of
the jar and there's nothing we can do about that, but it should be possible to
get all the projects at Eclipse.org to use the new version.
> 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: [email protected]
For additional commands, e-mail: [email protected]