[jbosstools-issues] [JBoss JIRA] (JBIDE-23865) Client: openshift-restclient-java 5.5 is not a drop-in replacement for 5.3.0.Final

Andre Dietisheim (JIRA) issues at jboss.org
Mon Feb 6 03:52:00 EST 2017


     [ https://issues.jboss.org/browse/JBIDE-23865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-23865:
-------------------------------------
    Description: 
We cannot switch to openshift-restclient-java 5.5.0. Doing so resources cant get listed any more in the OpenShift explorer. 

Eclipse requests the following:
{code}
Request{method=GET, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects, tag=null}
{code}

-> notice how the requested path seems wrong (project/projects/)

which gets responded by the following:

{code}
Response{protocol=http/1.1, code=404, message=Not Found, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects/sample-project}

which leads to the following exception being thrown:
com.openshift.restclient.NotFoundException: the server could not find the requested resource the server could not find the requested resource
    at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
    at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
    at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
    at okhttp3.RealCall.execute(RealCall.java:57)
    at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:255)
    at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
    at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:159)
    at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:147)
    at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:134)
    at org.jboss.tools.openshift.core.connection.Connection.getResources(Connection.java:471)
    at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.refresh(ConnectionWrapper.java:286)
    at org.jboss.tools.openshift.internal.ui.models.ProjectWrapper.refresh(ProjectWrapper.java:81)
    at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:60)
    at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
{code}

  was:
We cannot switch to openshift-restclient-java 5.5.0. Doing so resources cant get listed any more in the OpenShift explorer. 

Eclipse requests the following:
Request{method=GET, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects, tag=null}

-> notice how the requested path seems wrong (project/projects/)

which gets responded by the following:
{code}
Response{protocol=http/1.1, code=404, message=Not Found, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects/sample-project}

which leads to the following exception being thrown:
com.openshift.restclient.NotFoundException: the server could not find the requested resource the server could not find the requested resource
    at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
    at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
    at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
    at okhttp3.RealCall.execute(RealCall.java:57)
    at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:255)
    at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
    at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:159)
    at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:147)
    at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:134)
    at org.jboss.tools.openshift.core.connection.Connection.getResources(Connection.java:471)
    at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.refresh(ConnectionWrapper.java:286)
    at org.jboss.tools.openshift.internal.ui.models.ProjectWrapper.refresh(ProjectWrapper.java:81)
    at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:60)
    at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
{code}



> Client: openshift-restclient-java 5.5 is not a drop-in replacement for 5.3.0.Final
> ----------------------------------------------------------------------------------
>
>                 Key: JBIDE-23865
>                 URL: https://issues.jboss.org/browse/JBIDE-23865
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.2.AM2
>            Reporter: Andre Dietisheim
>
> We cannot switch to openshift-restclient-java 5.5.0. Doing so resources cant get listed any more in the OpenShift explorer. 
> Eclipse requests the following:
> {code}
> Request{method=GET, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects, tag=null}
> {code}
> -> notice how the requested path seems wrong (project/projects/)
> which gets responded by the following:
> {code}
> Response{protocol=http/1.1, code=404, message=Not Found, url=https://10.1.2.2:8443/oapi/v1/namespaces/sample-project/projects/sample-project}
> which leads to the following exception being thrown:
> com.openshift.restclient.NotFoundException: the server could not find the requested resource the server could not find the requested resource
>     at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
>     at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
>     at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
>     at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
>     at okhttp3.RealCall.execute(RealCall.java:57)
>     at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:255)
>     at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
>     at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:159)
>     at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:147)
>     at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:134)
>     at org.jboss.tools.openshift.core.connection.Connection.getResources(Connection.java:471)
>     at org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper.refresh(ConnectionWrapper.java:286)
>     at org.jboss.tools.openshift.internal.ui.models.ProjectWrapper.refresh(ProjectWrapper.java:81)
>     at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:60)
>     at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
>     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list