-
Bug
-
Resolution: Done
-
Major
-
7.x
-
- EXEC: replace 5.3.0.Final client with current 5.5.0-SNAPSHOT.
- EXEC: launch Eclipse OpenShift tooling
- EXEC: try to list resources for a project in OpenShift Explorer
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:
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)
- blocks
-
JBIDE-23862 Server adapter: if "oc" in preferences is set to path with a " " (or special characters like é, à etc.) syncing fails
- Closed