]
Jeff Cantrill reassigned JBIDE-23865:
-------------------------------------
Assignee: Jeff Cantrill
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
Assignee: Jeff Cantrill
Labels: openshift-restclient-java, openshift_v3
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}