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

ASF subversion and git services commented on KARAF-6239:
--------------------------------------------------------

Commit 87f497213a8b5de9d70f379333fab34ee8af8141 in karaf's branch 
refs/heads/master from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=87f4972 ]

Merge pull request #815 from jbonofre/KARAF-6239

[KARAF-6239] Workaround (waiting Felix Utils fix release) to avoid duplicated 
of features to deploy

> Duplicated Resource have been added to the Set<Resource> bundlesInRegion 
> during compute
> ---------------------------------------------------------------------------------------
>
>                 Key: KARAF-6239
>                 URL: https://issues.apache.org/jira/browse/KARAF-6239
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.4
>         Environment: Java 8
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.5
>
>
> When install a custom feature (e.g CXF jaxws service) into Karaf 4.2.4, there 
> are Duplicated Resource have been added to the Set<Resource> bundlesInRegion 
> during compute.
> The output from L1344 of 
> https://github.com/apache/karaf/blob/karaf-4.2.4/features/core/src/main/java/org/apache/karaf/features/internal/service/Deployer.java#L1344
> [..., org.eclipse.jetty.http/9.4.12.v20180830, ..., 
> org.eclipse.jetty.http/9.4.12.v20180830, ...]
> Then the only the first "org.eclipse.jetty.http/9.4.12.v20180830" will be 
> removed from "toDeploy" List. Consequently, the 
> "org.eclipse.jetty.http/9.4.12.v20180830" has been installed unexpected.
> {code}
> Installing bundles:
>    mvn:org.example.myprj.route/DemoRESTRoute/0.1.0
>    mvn:org.eclipse.jetty/jetty-http/9.4.12.v20180830
> {code}
> To fix it, have to override the equals() and hashCode() from 
> https://github.com/apache/felix/blob/trunk/utils/src/main/java/org/apache/felix/utils/resource/ResourceImpl.java
> (Fix it on Felix side)
> Or maybe something can be improved in 
> SubsystemResolver.getBundlesPerRegions()? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to