You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by googlielmo <gi...@git.apache.org> on 2016/11/10 18:00:35 UTC

[GitHub] brooklyn-server pull request #427: Use servicemix bundle for okio

GitHub user googlielmo opened a pull request:

    https://github.com/apache/brooklyn-server/pull/427

    Use servicemix bundle for okio

     - servicemix `okio` version 1.2.0_1
     - still wrap: `okhttp` 2.2.0 but with explicit dependency on `okio` 1.2.x bundle

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/googlielmo/brooklyn-server karaf/servicemix-okio

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/427.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #427
    
----
commit bdc9d939c0933d9e28db4d5a066427dabb8462d3
Author: Guglielmo Nigri <gu...@cloudsoftcorp.com>
Date:   2016-11-10T16:31:53Z

    Use servicemix bundle for okio
    
     - servicemix okio version 1.2.0_1
     - still wrap: okhttp 2.2.0 but with explicit dependency on okio 1.2.x bundle

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    However, `jclouds-okhttp` has the following:
    ```
    jclouds OkHttp Driver (101)
    ---------------------------
    Bnd-LastModified = 1452614220309
    Build-Jdk = 1.7.0_51
    Built-By = nacx
    Created-By = Apache Maven Bundle Plugin
    Implementation-Title = jclouds OkHttp Driver
    Implementation-Vendor = jclouds
    Implementation-Vendor-Id = org.jclouds
    Implementation-Version = 1.9.2
    Manifest-Version = 1.0
    Specification-Title = jclouds jclouds OkHttp Driver
    Specification-Vendor = jclouds
    Specification-Version = 1.9.2
    Tool = Bnd-1.50.0
    X-Compile-Source-JDK = 1.6
    X-Compile-Target-JDK = 1.6
    
    Bundle-Description = OkHttp Driver
    Bundle-DocURL = http://www.apache.org/
    Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
    Bundle-ManifestVersion = 2
    Bundle-Name = jclouds OkHttp Driver
    Bundle-SymbolicName = jclouds-okhttp
    Bundle-Vendor = The Apache Software Foundation
    Bundle-Version = 1.9.2
    
    Export-Package = 
    	org.jclouds.http.okhttp;uses:="com.squareup.okhttp,com.google.common.base,com.google.inject,org.jclouds.logging,org.jclouds.http,okio,org.jclouds.io,org.jclouds.http.handlers,com.google.common.collect,org.jclouds.io.payloads,org.jclouds.http.internal,org.jclouds";version=1.9.2,
    	org.jclouds.http.okhttp.config;uses:="org.jclouds.http,com.google.common.base,org.jclouds.http.okhttp,com.squareup.okhttp,javax.net.ssl,javax.inject,com.google.inject,com.google.inject.binder,org.jclouds.http.config";version=1.9.2
    Import-Package = 
    	com.google.common.base;version="[16.0,17)",
    	com.google.common.collect;version="[16.0,17)",
    	com.google.inject;version="[1.3,2)",
    	com.google.inject.binder;version="[1.3,2)",
    	com.squareup.okhttp,
    	javax.inject,
    	javax.net.ssl,
    	okio,
    	org.jclouds;version=1.9.2,
    	org.jclouds.http;version=1.9.2,
    	org.jclouds.http.config;version=1.9.2,
    	org.jclouds.http.handlers;version=1.9.2,
    	org.jclouds.http.internal;version=1.9.2,
    	org.jclouds.io;version=1.9.2,
    	org.jclouds.io.payloads;version=1.9.2,
    	org.jclouds.logging;version=1.9.2
    ```
    
    @googlielmo @andreaturli Is it going to be an issue that it doesn't specify a version for the okio import?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by googlielmo <gi...@git.apache.org>.
Github user googlielmo commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    For reference, I've opened:
    https://issues.apache.org/jira/browse/SM-3155
    https://github.com/apache/servicemix-bundles/pull/91


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    These changes look good, so good to merge.
    
    @googlielmo (cc @neykov) I still worry a bit about the `jclouds-okhttp` driver. If someone installs a newer version of `okio` 1.9.x then the `jclouds-okhttp` will presumably be restarted and will bind to that newer version? Maybe we just live with that? Or is it too risky?!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by googlielmo <gi...@git.apache.org>.
Github user googlielmo commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    @neykov `okhttp-3.4.1` has the version range for `okio` already in place, fortunately.
    Going to do the same for `jclouds-http`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by neykov <gi...@git.apache.org>.
Github user neykov commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    Thanks @googlielmo. Can you do the same for okhttp 3.4.1 (the one used by k8s client) and `jclouds-http`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server pull request #427: Use servicemix bundle for okio

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/brooklyn-server/pull/427


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by googlielmo <gi...@git.apache.org>.
Github user googlielmo commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    @aledsage cc: @neykov @andreaturli 
    I played a little with this and my conclusion is that since `jclouds-http` imports both `okhttp` and `okio`, having restricted the dependency `okhttp` -> `okio` will force the more specific version of `okio` to be wired to it.
    That said, I'm worried that `jclouds-http` doesn't seem to specify a version for `okhttp`, which might cause it to wire to `okhttp` 3 (maybe?). Better report that to the jclouds team.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by neykov <gi...@git.apache.org>.
Github user neykov commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    Looks good. Agree with @googlielmo's thinking that `okhttp` should restrict the version even for `jclouds-http`, but worth a check.
    What I'd like to see are fixes for upstream projects - servicemix okhttp 2.2.0, 3.4+, jclouds-http before considering this done deal.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] brooklyn-server issue #427: Use servicemix bundle for okio

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/427
  
    Here's what the headers look like now for okhttp:
    
    ```
    wrap_file__Users_aled_repos_apache_brooklyn_brooklyn-dist_karaf_apache-brooklyn_target_assembly_system_com_squareup_okhttp_okhttp_2.2.0_okhttp-2.2.0.jar_Import-Package_org.apache.http.__resolution__optional_android.util.__resolution__optional_okio_version___1.2.0__1.3.0____ (257)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Archiver-Version = Plexus Archiver
    Bnd-LastModified = 1478802994865
    Build-Jdk = 1.8.0_25
    Built-By = jwilson
    Created-By = 1.7.0_71 (Oracle Corporation)
    Generated-By-Ops4j-Pax-From = wrap:file:/Users/aled/repos/apache/brooklyn/brooklyn-dist/karaf/apache-brooklyn/target/assembly/system/com/squareup/okhttp/okhttp/2.2.0/okhttp-2.2.0.jar$Import-Package=org.apache.http.*;resolution:=optional,android.util.*;resolution:=optional,okio;version="[1.2.0, 1.3.0)",*
    Manifest-Version = 1.0
    Originally-Created-By = Apache Maven 3.2.3
    Tool = Bnd-2.3.0.201405100607
    
    Bundle-ManifestVersion = 2
    Bundle-Name = wrap_file__Users_aled_repos_apache_brooklyn_brooklyn-dist_karaf_apache-brooklyn_target_assembly_system_com_squareup_okhttp_okhttp_2.2.0_okhttp-2.2.0.jar_Import-Package_org.apache.http.__resolution__optional_android.util.__resolution__optional_okio_version___1.2.0__1.3.0____
    Bundle-SymbolicName = wrap_file__Users_aled_repos_apache_brooklyn_brooklyn-dist_karaf_apache-brooklyn_target_assembly_system_com_squareup_okhttp_okhttp_2.2.0_okhttp-2.2.0.jar_Import-Package_org.apache.http.__resolution__optional_android.util.__resolution__optional_okio_version___1.2.0__1.3.0____
    Bundle-Version = 0
    
    Require-Capability = 
    	osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.7))
    
    Export-Package = 
    	com.squareup.okhttp;uses:="javax.net,javax.net.ssl,okio",
    	com.squareup.okhttp.internal;uses:="com.squareup.okhttp,com.squareup.okhttp.internal.http,javax.net.ssl,okio",
    	com.squareup.okhttp.internal.http;uses:="com.squareup.okhttp,com.squareup.okhttp.internal.spdy,okio",
    	com.squareup.okhttp.internal.spdy;uses:="com.squareup.okhttp,okio",
    	com.squareup.okhttp.internal.tls;uses:=javax.net.ssl,
    	com.squareup.okhttp.internal.ws;uses:="com.squareup.okhttp,okio"
    Import-Package = 
    	okio;version="[1.2.0, 1.3.0)",
    	javax.net,
    	javax.net.ssl,
    	javax.security.auth.x500
    ```
    
    In contrast, here is what it used to have:
    ```
    wrap_file__Users_aled_repos_apache_brooklyn_brooklyn-dist_karaf_apache-brooklyn_target_assembly_system_com_squareup_okhttp_okhttp_2.2.0_okhttp-2.2.0.jar (256)
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    Archiver-Version = Plexus Archiver
    Bnd-LastModified = 1478803574368
    Build-Jdk = 1.8.0_25
    Built-By = jwilson
    Created-By = 1.7.0_71 (Oracle Corporation)
    Generated-By-Ops4j-Pax-From = wrap:file:/Users/aled/repos/apache/brooklyn/brooklyn-dist/karaf/apache-brooklyn/target/assembly/system/com/squareup/okhttp/okhttp/2.2.0/okhttp-2.2.0.jar
    Manifest-Version = 1.0
    Originally-Created-By = Apache Maven 3.2.3
    Tool = Bnd-2.3.0.201405100607
    
    Bundle-ManifestVersion = 2
    Bundle-Name = wrap_file__Users_aled_repos_apache_brooklyn_brooklyn-dist_karaf_apache-brooklyn_target_assembly_system_com_squareup_okhttp_okhttp_2.2.0_okhttp-2.2.0.jar
    Bundle-SymbolicName = wrap_file__Users_aled_repos_apache_brooklyn_brooklyn-dist_karaf_apache-brooklyn_target_assembly_system_com_squareup_okhttp_okhttp_2.2.0_okhttp-2.2.0.jar
    Bundle-Version = 0
    
    Require-Capability = 
    	osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.7))
    
    Export-Package = 
    	com.squareup.okhttp;uses:="javax.net,javax.net.ssl,okio",
    	com.squareup.okhttp.internal;uses:="com.squareup.okhttp,com.squareup.okhttp.internal.http,javax.net.ssl,okio",
    	com.squareup.okhttp.internal.http;uses:="com.squareup.okhttp,com.squareup.okhttp.internal.spdy,okio",
    	com.squareup.okhttp.internal.spdy;uses:="com.squareup.okhttp,okio",
    	com.squareup.okhttp.internal.tls;uses:=javax.net.ssl,
    	com.squareup.okhttp.internal.ws;uses:="com.squareup.okhttp,okio"
    Import-Package = 
    	javax.net;resolution:=optional,
    	javax.net.ssl;resolution:=optional,
    	javax.security.auth.x500;resolution:=optional,
    	okio;resolution:=optional
    ```



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---